Trait futures::task::ContextExt [−][src]
Extension trait for Context
, adding methods that require allocation.
Required Methods
fn spawn<Fut>(&mut self, future: Fut) where
Fut: Future<Output = ()> + 'static + Send,
[−]
Fut: Future<Output = ()> + 'static + Send,
Spawn a future onto the default executor.
Panics
This method will panic if the default executor is unable to spawn.
To handle executor errors, use Context::executor()
on instead.
Implementors
impl<'a> ContextExt for Context<'a>