Skip to main content

new_round

Function new_round 

Source
fn new_round(
    sharing: &Sharing<'_>,
    memory: &mut Memory,
    stores: &[Store],
    found: &Found,
    hurried: &dyn Fn() -> bool,
    now_ms: i64,
    cut: bool,
) -> Result<(), String>
Expand description

A new file for this computer, opening on every entry it holds the last word on, with their clocks; entries taken out long ago are forgotten. A file sealed apart missing from the folder (taken out there by hand) is put back first. cut: the round before lost lines (its file cut short, or found without a line), which a reader that had not read them waits for until a full round restates all.