Function set_num_cpus

Source
pub fn set_num_cpus(size: usize) -> Result<(), String>
Expand description

Set the number of executor thread

Analogous to GOMAXPROCS in golang, can only be set once and before executor is running, if not set before executor running, it will be the number of available cpu in the host