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