Function scope
Source pub fn scope<'env, F, T>(f: F) -> Twhere
F: for<'scope>
FnOnce(&'scope
Scope<'scope, 'env>) -> T,
Expand description
Creates a scope for spawning scoped threads.
The function passed to scope will be provided a Scope object,
through which scoped threads can be spawned.