Skip to main content

postpone_break

Function postpone_break 

Source
pub async fn postpone_break(
    app: AppHandle,
    scheduler: State<'_, Scheduler>,
    kind: BreakKind,
) -> Result<(), String>
Expand description

Push the active break out by the configured postpone interval (with optional escalation by previous postpone count). Errors when strict_mode / postpone_enabled = false block postpone or when the per-break postpone cap is reached. Side-effects: bumps the per-kind postpone counter, fires break_postponed hooks, hides overlays.