Skip to main content

current_task

Function current_task 

Source
pub fn current_task() -> Option<TaskHandle>
Expand description

This process’s own task, if it is itself running as one — read from BASIS_TASK_ID. None for a value that is absent, blank, or does not fit the task-handle grammar: basis’s own runtime always sets a well-formed one, so a malformed value is not basis’s, and treating it as “no current task” is the safer reading of somebody else’s environment variable.