Skip to main content

end_break

Function end_break 

Source
pub async fn end_break(
    app: AppHandle,
    scheduler: State<'_, Scheduler>,
    reason: Option<String>,
) -> Result<(), String>
Expand description

Conclude the currently-active break. reason distinguishes "completed" (taken in full), "dismissed" (user closed it early), and "postponed" (countdown wasn’t honoured). Updates the session counters, fires break_end hooks, hides every overlay window, and emits break:end.