Skip to main content

build_children_snapshot

Function build_children_snapshot 

Source
pub fn build_children_snapshot(
    projection: &ReplayReducer,
    parent_id: TaskId,
) -> Option<ChildrenSnapshot>
Expand description

Builds a ChildrenSnapshot by querying the projection for all tasks whose parent_task_id matches parent_id.

Returns None if there are no children (avoids allocating an empty snapshot). Returns Some(snapshot) with all child run states at the current projection sequence — this is an immutable point-in-time view safe to pass to handlers running on spawn_blocking.