Skip to main content

default_worker_threads

Function default_worker_threads 

Source
pub fn default_worker_threads() -> usize
Expand description

Returns the recommended tokio worker_threads count for an ATD server binary. Reads ATD_WORKER_THREADS if set; otherwise defaults to min(available_parallelism, 4), falling back to 2 if the OS query fails.