Skip to main content

push_to_running

Function push_to_running 

Source
pub(super) fn push_to_running(
    mstore: &Store,
    store: &Store,
    b: &Bulletin,
    running: &[AgentRegistration],
) -> usize
Expand description

Hand b to every registered agent it is for that can take a note (decide with Intent::Note), apart from its author: it joins the turn in flight, or waits to go after the next message the pane gets, and never starts a turn. Those agents have then seen it; one that is stopped and not wanted running has not, and gets the bulletin at its next Tasks claim. (A pane that already holds eight notes drops its oldest, which is then lost to it; that is rare and not recoverable here.) Returns how many agents that was.