[−][src]Function std::future::set_task_context
pub fn set_task_context<F, R>(cx: &mut Context, f: F) -> R where
F: FnOnce() -> R,
Sets the thread-local task context used by async/await futures.
pub fn set_task_context<F, R>(cx: &mut Context, f: F) -> R where
F: FnOnce() -> R,
Sets the thread-local task context used by async/await futures.