Skip to main content

create_runtime

Function create_runtime 

Source
pub fn create_runtime(num_threads: usize) -> ANNResult<Runtime>
Expand description

Creates a new multi-threaded tokio runtime with the specified number of worker threads. If num_threads is 0, it defaults to the number of logical CPUs.