init_runtime

Function init_runtime 

Source
pub fn init_runtime(num_threads: Option<u32>) -> Result<()>
Expand description

Initialize tokio runtime with custom thread count

Call this once at application startup to configure the async runtime. If not called, defaults to number of CPU cores.

ยงArguments

  • num_threads - Number of worker threads (None = auto-detect)