Expand description
Runtime builder and handle.
Provides RuntimeBuilder for configuring and constructing a Runtime,
and Runtime for driving async entry points.
§Example
use moduvex_runtime::Runtime;
let rt = Runtime::builder()
.thread_per_core()
.enable_io()
.enable_time()
.build()
.unwrap();
rt.block_on(async { 1 + 1 });§Multi-threaded example
use moduvex_runtime::Runtime;
let rt = Runtime::builder()
.worker_threads(4)
.build()
.unwrap();
rt.block_on(async { 1 + 1 });Structs§
- Runtime
- A configured async runtime.
- Runtime
Builder - Configures a
Runtime.