pub trait AsyncNotificationWaiter {
// Required method
fn async_wait<'a>(&'a self) -> AsyncMonitorFuture<'a, ()>;
}Expand description
Waits asynchronously until a notification is observed.
Required Methods§
Sourcefn async_wait<'a>(&'a self) -> AsyncMonitorFuture<'a, ()>
fn async_wait<'a>(&'a self) -> AsyncMonitorFuture<'a, ()>
Returns a future that resolves after a notification wakes this waiter.
Implementors§
impl<T: Send> AsyncNotificationWaiter for ArcMockMonitor<T>
Available on crate feature
async only.impl<T: Send> AsyncNotificationWaiter for ArcTokioMonitor<T>
impl<T: Send> AsyncNotificationWaiter for MockMonitor<T>
Available on crate feature
async only.