pub fn set_gomaxprocs(n: usize) -> usizeExpand description
Set the number of logical processors and return the previous value.
See [runtime::sched::set_gomaxprocs] for full semantics.
ยงExample
let old = go_lib::set_gomaxprocs(2);
println!("was {old}, now {}", go_lib::gomaxprocs());