Skip to main content

reschedule

Function reschedule 

Source
fn reschedule(
    schedule: BTreeMap<(OwnedUserId, SmallString<[u8; 48]>), Entry>,
    key: (OwnedUserId, SmallString<[u8; 48]>),
    outcome: Outcome,
    kept: Option<u64>,
) -> BTreeMap<(OwnedUserId, SmallString<[u8; 48]>), Entry>
Expand description

Applies an outcome to a pusher that fell due.

The outcome, an evaluation’s or a failed cursor start’s, decides the pusher’s next entry, if any, carrying its failure count forward; the entry keeps the frontier of a cursor start that failed.