Skip to main content

spawn_scoped

Function spawn_scoped 

Source
pub fn spawn_scoped<'a, F>(future: F) -> ScopedJoinHandle<'a, F::Output> 
where F: Future + Send + 'a, F::Output: Send + 'a,
Expand description

Spawns a non-static Send future, returning for non-static cases a !Send task handle.