[][src]Function futures_test::task::noop_waker_ref

pub fn noop_waker_ref() -> &'static Waker

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

Examples

#![feature(futures_api)]
use futures::task::noop_waker_ref;
let lw = noop_waker_ref();
lw.wake();