Function leak_playground_tokio::task::spawn_blocking_scoped

source ·
pub fn spawn_blocking_scoped<'a, F, T>(f: F) -> ScopedJoinHandle<'a, T> 
where F: FnOnce() -> T + Send + 'a, T: Send + 'a,
Expand description

Runs the provided non-static closure on a thread where blocking is acceptable.