[][src]Function futures_test::task::panic_waker

pub fn panic_waker() -> Waker

Create a new Waker which will panic 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_test::task::panic_waker;

let lw = panic_waker();
lw.wake(); // Will panic