Skip to main content

runtime

Function runtime 

Source
pub fn runtime(num_threads: usize) -> Result<Runtime>
Expand description

Create a generic multi-threaded runtime with num_threads.

No guarantees are made about the returned tokio::runtime::Runtime except that it will have num_threads workers.