pub type DefaultExecutor = TokioExecutor;Expand description
Executor that selects an available runtime backend at compile time.
- On non-Wasm targets with the
tokio,smol, orcompiofeature enabled, it usesTokioExecutor,SmolExecutor, orCompioExecutor. - On non-Wasm targets with the
threadpoolfeature enabled and thetokio,smolorcompiofeature disabled, it usesThreadPoolExecutor. - On non-Wasm targets with only the
literuntime feature enabled, it usesLiteExecutor. - On Wasm targets, it uses
WasmExecutor, backed bywasm-bindgen-futures.
Aliased Typeยง
pub struct DefaultExecutor;