Module task

Module task 

Source
Expand description

Implementations for the different runtimes of the abstractions in futures::task.

Structs§

AsyncStdExecutorasync-std-rt
An executor for the async_std runtime.
JoinHandle
A handle that awaits the result of a task. Gets returned by SpawnBlocking.
TokioExecutortokio-rt
An executor for the tokio runtime.

Traits§

Spawn
The Spawn trait allows for pushing futures onto an executor that will run them to completion.
SpawnBlocking
An abstraction over executing a sync task in a new blocking thread and optionally awaiting it’s completion in an async fashion.
SpawnExt
Extension trait for Spawn.