[][src]Function fibers_global::set_thread_count

pub fn set_thread_count(n: usize) -> bool

Sets the number of scheduler threads used by the global executor.

If the global executor already has started, the invocation of this function has no effect and false is returned.

Panics

If the specified count is 0 or usize::MAX, the current thread will panic.