[−][src]Trait executor_trait::Executor
A common interface for spawning futures on top of an executor
Required methods
pub fn spawn<T>(
&self,
f: Pin<Box<dyn Future<Output = T> + Send>>
) -> Box<dyn Task<T>>[src]
&self,
f: Pin<Box<dyn Future<Output = T> + Send>>
) -> Box<dyn Task<T>>
Spawn a future and return a handle to get its result on completion.
Dropping the handle will cancel the future. You can call detach() to let it
run without waiting for its completion.