Struct Context
1.36.0 · Source
pub struct Context<'a> { /* private fields */ }Expand description
The context of an asynchronous task.
Currently, Context only serves to provide access to a &Waker
which can be used to wake the current task.
Source§
Source 🔬This is a nightly-only experimental API. (local_waker #118959)
local_waker #118959)Returns a reference to the LocalWaker for the current task.