Function leak_playground_tokio::task::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.