Skip to main content

close_outputs

Function close_outputs 

Source
pub(crate) async fn close_outputs(
    region: &CompactionRegion,
    all_seeds: PickerOutput,
    max_outputs: Option<usize>,
) -> Result<(Option<PickerOutput>, Vec<usize>)>
Expand description

Attempts seeds in priority order until valid closures fill the output budget. Returns indices into the original seed list for all attempted/absorbed seeds, including rejected closures but excluding seeds left behind by the budget.