[][src]Function futures_test::task::noop_waker

pub fn noop_waker() -> Waker

Create a new Waker which does nothing when wake() is called on it. The [Waker] can be converted into a [Waker] which will behave the same way.

Examples

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