Function blaze_rs::context::scope

source ·
pub fn scope<'env, T, F: for<'scope> FnOnce(&'scope Scope<'scope, 'env>) -> Result<T>>(
    f: F
) -> Result<T>
Expand description

Creates a new scope with the global context to enqueue events in. All events that haven’t completed by the end of the function will be automatically awaitad before the function returns.