Skip to main content

read_evaluated_chains

Function read_evaluated_chains 

Source
async fn read_evaluated_chains(
    stream: &mut SendableEvaluatedSeriesStream,
    partition: usize,
    routing: &Routing,
    senders: &[UnboundedSender<Queued>],
    read_ahead: &MemoryReservation,
) -> Stop
Expand description

Reads one input partition to its end, one whole chain at a time, routing each chain as it closes.

A chain is assembled here and handed over atomically after it closes; its growing memory is charged to the pool. Output queues are unbounded, so routing does not wait for output polling. Each queued chain retains its pool charge until the owner consumes it or the queue is dropped. This function otherwise waits only on its own child.