Skip to main content

prompt_for_break

Function prompt_for_break 

Source
pub fn prompt_for_break(
    kind: BreakKind,
    state: &mut ChoresState,
) -> Option<String>
Expand description

Resolve the chore nudge for a break. Only long breaks draw a chore — micro breaks are too short to start a task and bedtime is for winding down. Advances the rotation cursor as a side effect for long breaks with a non-empty list.