Skip to main content

AsyncNotificationWaiter

Trait AsyncNotificationWaiter 

Source
pub trait AsyncNotificationWaiter {
    // Required method
    fn async_wait<'a>(&'a self) -> AsyncMonitorFuture<'a, ()>;
}
Expand description

Waits asynchronously until a notification is observed.

Required Methods§

Source

fn async_wait<'a>(&'a self) -> AsyncMonitorFuture<'a, ()>

Returns a future that resolves after a notification wakes this waiter.

Implementors§

Source§

impl<T: Send> AsyncNotificationWaiter for ArcMockMonitor<T>

Available on crate feature async only.
Source§

impl<T: Send> AsyncNotificationWaiter for ArcTokioMonitor<T>

Source§

impl<T: Send> AsyncNotificationWaiter for MockMonitor<T>

Available on crate feature async only.
Source§

impl<T: Send> AsyncNotificationWaiter for TokioMonitor<T>