Skip to main content

deliver_scheduled_break

Function deliver_scheduled_break 

Source
async fn deliver_scheduled_break<R: Runtime>(
    app: &AppHandle<R>,
    sched: &Scheduler,
    s: &Settings,
    kind: BreakKind,
) -> BreakDelivery
Expand description

Build and surface a scheduled micro/long break: resolve the per-kind content from s, deliver it through the configured channel, fire the BreakStart hook, and log the event. Returns the resolved delivery so the caller can decide whether to mark an active_break.

Timer bookkeeping stays with the caller (fire_scheduled_break): fixed-time and interval fires reset different timer fields, so folding them in here would just move the divergence. Sleep goes through the bedtime path’s own overlay::fire_break (different postpone semantics) and never reaches this helper.