television_utils::threads

Function default_num_threads

Source
pub fn default_num_threads() -> NonZeroUsize
Expand description

Get the number of threads to use by default.

This will use the number of available threads if possible, but will default to 1 if the number of available threads cannot be determined. It will also never use more than 32 threads to avoid startup overhead.