Skip to main content

spawn_counted

Function spawn_counted 

Source
pub fn spawn_counted<F>(fut: F) -> JoinHandle<F::Output> ⓘ
where F: Future + Send + 'static, F::Output: Send,
Expand description

Spawn fut as a CountedFut (increments/decrements an AtomicUsize)