Skip to main content

scoped

Function scoped 

Source
pub fn scoped<R>(services: &ProcessServices, f: impl FnOnce() -> R) -> R
Expand description

Run f with services as current on this thread.

Nests: the innermost scope wins, and the previous one is restored when f returns or unwinds.