Skip to main content

abort_stranded_break

Function abort_stranded_break 

Source
pub(crate) fn abort_stranded_break<R: Runtime>(
    app: &AppHandle<R>,
    current_break: &Arc<Mutex<Option<BreakEvent>>>,
)
Expand description

Tear down a break whose overlay never reported rendering — the #196/#226 watchdog firing, or the shown == 0 no-overlay case. Mirrors the cleanup half of end_break (clear the current break, resume any paused media, hide every overlay window, emit break:end) but records no stats: an invisible break was never taken or dismissed. Scheduler-free so the watchdog task can run it from cloned Arcs without holding &Scheduler.

On the Windows test build the only callers — the #[cfg(not(test))] watchdog spawn and the rig test below (excluded on Windows, where the tauri test feature can’t boot a mock app) — are both compiled out, so it reads as dead there only; the real build keeps it live.