[go: up one dir, main page]

spawn_blocking

Function spawn_blocking 

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

spawn_blocking will use the global executor instance, which is determined by the cargo features, to spawn the given blocking task.