Skip to main content

route_partition

Function route_partition 

Source
async fn route_partition(
    stream: RoutedInput,
    partition: usize,
    routing: Routing,
    senders: Vec<UnboundedSender<Queued>>,
    read_ahead: MemoryReservation,
    inputs: Arc<Inputs>,
    report: ReportIfUnreported,
)
Expand description

One input partition’s task: reads its own child, assembles chains, and sends each complete chain to its canonical owner. Output queues are unbounded, so sending does not wait for an owner to poll; queued chains remain charged to the pool until consumed or dropped. Each task records its outcome before returning and dropping its senders, so output streams observe the final read outcome.