Skip to main content

NotificationWaiter

Trait NotificationWaiter 

Source
pub trait NotificationWaiter {
    // Required method
    fn wait(&self);
}
Expand description

Waits until a notification is observed.

This trait models a blocking, memoryless notification wait. A notification sent before wait starts is not remembered for future waiters.

Required Methods§

Source

fn wait(&self)

Blocks the current thread until a notification wakes this waiter.

Implementors§