Function futures_util::task::noop_waker_ref

source ·
pub fn noop_waker_ref() -> &'static Waker
Expand description

Get a thread local reference to a Waker referencing a singleton instance of a Waker which panics when woken.

§Examples

use futures::task::noop_waker_ref;
let waker = noop_waker_ref();
waker.wake_by_ref();