Skip to main content

drain_queued_messages

Function drain_queued_messages 

Source
pub fn drain_queued_messages() -> Vec<String>
Expand description

Atomically take every queued message FIFO and clear the history queue. Prefer this over get_queued_messages + clear_queue: the snapshot pattern races and callers that only use .last() drop all but the newest message.