Skip to main content

try_once

Function try_once 

Source
fn try_once(
    notice: &mut Notice,
    bus: Option<LocalConnection>,
    words: &mut dyn FnMut(&mut Notice) -> bool,
) -> Tried
Expand description

One try of a dose’s reminder: the connection (made now, within the first try’s TRY; or bus, a try after the first, within TRY_AGAIN), its two matches, what the server reads, then its words as they are now (words: shown late, the doubt first; false, no longer to remind), then the Notify, sent only with its own wait (ASKED) still ahead, and that wait. Not gone out when anything before the Notify fails or there is no time left for it; sent and not answered in time, maybe.