Skip to main content

fiber_scope

Function fiber_scope 

Source
pub fn fiber_scope<'env, R>(
    capacity: usize,
    body: impl for<'scope> FnOnce(&'scope FiberScope<'scope, 'env>) -> R,
) -> R
Expand description

Runs a lexical borrowed-stack owner; leaked leases are inert after this returns.