Function may::coroutine::scope

source ·
pub fn scope<'a, F, R>(f: F) -> R
where F: FnOnce(&Scope<'a>) -> R,
Expand description

Create a new scope, for deferred destructors.

Scopes, in particular, support scoped coroutine spawning.