Skip to main content

spawn

Function spawn 

Source
pub fn spawn<F, T>(f: F) -> JoinHandle<T>
where F: FnOnce() -> T + 'static, T: 'static,
Expand description

Start a thread running f (see Builder::spawn).