scope_fn

Function scope_fn 

Source
pub fn scope_fn<'env, R, B>(body: B) -> ScopeBody<'env, R> 
where R: Send + 'env, B: for<'scope> FnOnce(&'scope Scope<'scope, 'env, R>) -> BoxFuture<'scope, R>,
Expand description

Creates a new moro scope. Normally, you invoke this through moro::async_scope!.