[][src]Function lelet::set_num_cpus

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

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