[−][src]Function futures_test::task::panic_context
pub fn panic_context() -> Context<'static>
Create a new task::Context
where both
the waker and
spawner will panic if used.
Examples
#![feature(futures_api)] use futures_test::task; let cx = task::panic_context(); cx.waker().wake(); // Will panic