kvarn_async::prelude::compact_str::core::taskStruct Context
1.36.0 · source pub struct Context<'a> { }
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.
1.36.0 (const: 1.82.0) · source
Creates a new Context from a &Waker.
1.36.0 (const: 1.82.0) · source
Returns a reference to the Waker for the current task.