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

This commit is contained in:
Yotam Ofek
2021-06-14 10:05:34 +02:00
committed by GitHub
parent cb147a2b3f
commit 21de476ae7
2 changed files with 6 additions and 1 deletions
+5
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};
+1 -1
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.