Function elfo::scope::try_with

source ·
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.