Skip to content

Commit 21de476

Browse files
authored
sync: export sync::notify::Notified future publicly (#3840)
1 parent cb147a2 commit 21de476

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

tokio/src/sync/mod.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@
428428
//! bounding of any kind.
429429
430430
cfg_sync! {
431+
/// Named future types.
432+
pub mod futures {
433+
pub use super::notify::Notified;
434+
}
435+
431436
mod barrier;
432437
pub use barrier::{Barrier, BarrierWaitResult};
433438

tokio/src/sync/notify.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct Waiter {
140140
_p: PhantomPinned,
141141
}
142142

143-
/// Future returned from `notified()`
143+
/// Future returned from [`Notify::notified()`]
144144
#[derive(Debug)]
145145
pub struct Notified<'a> {
146146
/// The `Notify` being received on.

0 commit comments

Comments
 (0)