Skip to main content

spawn_fn

Function spawn_fn 

Source
pub fn spawn_fn<F, R>(func: F) -> TaskHandle<R>
where F: FnOnce() -> R + Send + 'static, R: Send + 'static,
Expand description

Spawn a parallel task on the global runtime.