Skip to main content

next_eligible_chunk

Function next_eligible_chunk 

Source
fn next_eligible_chunk(
    manifest: &Manifest,
    next_idx: &mut usize,
) -> Option<usize>
Expand description

Returns the index of the next chunk eligible for export, scanning forward from next_idx and skipping already Completed/Skipped chunks. Advances next_idx past the returned chunk so each chunk is scheduled at most once.