Skip to main content

scheduled_break_event

Function scheduled_break_event 

Source
fn scheduled_break_event(
    kind: BreakKind,
    s: &Settings,
    intensity: f32,
    chore_prompt: Option<String>,
) -> BreakEvent
Expand description

Resolve the per-kind BreakEvent content for a scheduled micro/long break. Pure (no I/O) so the field resolution — which fields each kind draws, the strict-mode postpone lock, the break-health intensity gate — is unit-testable without a windowing runtime. intensity is the live value from the stats lock; the helper applies the break_health_enabled gate. Sleep never reaches here (bedtime path).