Skip to main content

drain_in

Function drain_in 

Source
pub fn drain_in(
    dir: &Path,
    send: impl FnMut(&Queued) -> Sent,
) -> Result<Drained>
Expand description

Send each waiting note in dir through send, oldest first. A kept or refused note leaves the queue; the first one that has to wait stops the drain, and it and every later note stay, in order.

ยงErrors

The queue file cannot be rewritten.