[][src]Function std::future::set_task_context

pub fn set_task_context<F, R>(cx: &mut Context, f: F) -> R where
    F: FnOnce() -> R, 
🔬 This is a nightly-only experimental API. (gen_future #50547)

Sets the thread-local task context used by async/await futures.