sync: export sync::notify::Notified future publicly (#3840)

This commit is contained in:
Yotam Ofek 2021-06-14 11:05:34 +03:00 committed by GitHub
parent cb147a2b3f
commit 21de476ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 1 deletions

View File

@ -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};

View File

@ -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.