[−][src]Function fibers::fiber::with_current_context
pub fn with_current_context<F, T>(f: F) -> Option<T> where
F: FnOnce(Context) -> T,
Calls f
with the current execution context.
If this function is called on the outside of a fiber, it will ignores f
and returns None
.