Skip to main content

current

Function current 

Source
pub fn current() -> Option<Scope>
Expand description

Returns the scope of the current process.

Returns None outside of a supervised process. You can move the returned handle to other tasks. Thus, code that does not run as the process that owns the scope can spawn into that scope. A callback-driven executor is an example of such code.