pub fn try_with<R>(f: impl FnOnce(&Scope) -> R) -> Option<R>
Accesses the current scope and runs the provided closure.
Returns None if called outside the actor system. For a panicking variant, see with.
None
with