pub fn with<R>(f: impl FnOnce(&Scope) -> R) -> R
Accesses the current scope and runs the provided closure.
This function will panic if called ouside the actor system.