Skip to main content

configured_worker_threads

Function configured_worker_threads 

Source
pub fn configured_worker_threads() -> Option<usize>
Expand description

Resolve an explicit worker-thread count for the main runtime.

Returns None when unset or not a positive integer, so the default one-worker-per-core behaviour is preserved. Reserving cores for non-Tokio background work is the isolation lever the fast-Tokio guidance recommends (“you rarely need every core for Tokio”); operators that co-locate VT Code with other processes can lower this without rebuilding.