Function mioco::start_threads
[−]
[src]
pub fn start_threads<F, T>(thread_num: usize, f: F) -> Result<T> where F: FnOnce() -> T, F: Send + 'static, T: Send + 'static
Start a new mioco instance with a given number of threads.
Returns after mioco instance exits.
Shorthand for mioco::start()
running given number of threads.