Module async_executors::exec
source · [−]Expand description
The executor implementations.
Structs
async_global
An executor that spawns tasks on async-global-executor. In contrast to the other executors, this one is not self contained, because async-global-executor does not provide an API that allows that, so the threadpool is global.
async_std
An executor that spawns tasks on async-std. In contrast to the other executors, this one is not self contained, because async-std does not provide an API that allows that, so the threadpool is global.
bindgen
and WebAssemblyA type that implements Spawn
, LocalSpawn
, SpawnHandle
and LocalSpawnHandle
.
Spawns on the wasm-bingen-futures executor. The executor is global, eg. not self contained
and zero sized.
tokio_ct
An executor that uses a tokio::runtime::Runtime
with the current thread
and a tokio::task::LocalSet
. Can spawn !Send
futures.
tokio_ct
Builder to create a TokioCt
executor. This guarantees that TokioCt
always has a runtime that is single-threaded,
as tokio does not make this information available on it’s Runtime
type.
tokio_tp
An executor that uses tokio::runtime::Runtime.
tokio_tp
Builder to create a TokioTp
executor. This guarantees that TokioTp
always has a runtime that is multi-threaded,
as tokio does not make this information available on it’s Runtime
type.