Skip to main content

queue_once

Function queue_once 

Source
pub fn queue_once(
    talk: &mut Talk,
    store: &Talks,
    text: &str,
    key: &str,
) -> Result<bool>
Expand description

queue for a message that must be accepted at most once: key is recorded in Talk::notified in the same write as the draft, so a retry after a crash (or a second sweep) finds the key and queues nothing. Returns whether this call queued it.