Skip to main content

Module runtime

Module runtime 

Source
Expand description

Deterministic runtime: single-threaded sim runtime under simulation.

Under simulation (simulation + cfg(madsim)), Builder::new_multi_thread() returns a single-threaded deterministic runtime. worker_threads() and enable_all() are no-ops.

Structsยง

Builder
Builds Tokio Runtime with custom configuration values.
Handle
Handle to the runtime.
Runtime
The Tokio runtime.