Skip to content

Commit

Permalink
sync: export sync::notify::Notified future publicly (#3840)
Browse files Browse the repository at this point in the history
  • Loading branch information
yotamofek committed Jun 14, 2021
1 parent cb147a2 commit 21de476
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions tokio/src/sync/mod.rs
Expand Up @@ -428,6 +428,11 @@
//! bounding of any kind.

cfg_sync! {
/// Named future types.
pub mod futures {
pub use super::notify::Notified;
}

mod barrier;
pub use barrier::{Barrier, BarrierWaitResult};

Expand Down
2 changes: 1 addition & 1 deletion tokio/src/sync/notify.rs
Expand Up @@ -140,7 +140,7 @@ struct Waiter {
_p: PhantomPinned,
}

/// Future returned from `notified()`
/// Future returned from [`Notify::notified()`]
#[derive(Debug)]
pub struct Notified<'a> {
/// The `Notify` being received on.
Expand Down

0 comments on commit 21de476

Please sign in to comment.