Function waker::new_waker

source ·
pub fn new_waker() -> (Waker, Blocker)
Expand description

Creates a new waker and blocker pair that are associated with each other.

The blocker can be used to block the current task until the waker is woken.