Trait futures::task::ContextExt[][src]

pub trait ContextExt {
    fn spawn<Fut>(&mut self, future: Fut)
    where
        Fut: Future<Output = ()> + 'static + Send
; }

Extension trait for Context, adding methods that require allocation.

Required Methods

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