Skip to main content

queued_alert

Function queued_alert 

Source
fn queued_alert(
    deliver: impl Fn(String) + Send + 'static,
) -> impl Fn(&str) + Send + Sync + 'static
Expand description

A callback that only queues each line; deliver runs on its own thread. The registry raises an alert from inside message delivery, where the handler’s lock is held, so a deliver that took that lock there would never return.