Skip to main content

Module runtime

Module runtime 

Source
Expand description

The runtime seam.

The core crate never names a concrete executor in a public signature. Code that has to spawn a task or wait on a timer takes a Runtime, and the caller picks an implementation: TokioRuntime (feature rt-tokio) on native targets, or WasmRuntime (feature rt-wasm) on wasm32.

Structs§

TokioRuntime
Runtime backed by a tokio runtime handle.

Traits§

MaybeSend
Send on native targets, nothing on wasm32.
Runtime
The capabilities the harness needs from an async runtime.