[][src]Function futures::task::noop_local_waker_ref

pub fn noop_local_waker_ref() -> &'static LocalWaker

Get a thread local reference to a LocalWaker referencing a singleton instance of [NoopWake].

Examples

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