Module async_executors::exec[][src]

Expand description

The executor implementations.

Structs

AsyncGlobalasync_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.

AsyncStdasync_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.

Bindgenbindgen and WebAssembly

A 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.

GlommioCtglommio

Single threaded glommio executor. This executor works on Linux 5.8+ only.

TokioCttokio_ct

An executor that uses a tokio::runtime::Runtime with the current thread and a tokio::task::LocalSet. Can spawn !Send futures.

TokioCtBuildertokio_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.

TokioTptokio_tp

An executor that uses tokio::runtime::Runtime.

TokioTpBuildertokio_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.