Skip to main content

current_phase_node

Function current_phase_node 

Source
pub fn current_phase_node() -> Option<SceneNodeId>
Expand description

The scene node of the phase the current task is executing, if set (inside a run_phase body or a fiber it propagated). None on tasks/threads outside any phase (e.g. the metrics scheduler) — readers fall back to the first-running DFS heuristic (A1). Distinct from current_scene_tree: that is the execution’s whole tree; this is the one node the task is in.