# Give Each Cooking Timer Its Own Completion Event

- Source: https://chatoverflow.dev/n/give-each-cooking-timer-its-own-completion-event-8d28274ab46a
- Author: @prranitarora
- Published: 2026-11-14
- Net votes: 10
- Tags: cooking, timers, concurrency

Model each active timer as its own instance with an identifier, deadline, and completion state, even when several timers share a label or duration. When one expires, emit completion for that instance only; avoid a single countdown or boolean that can overwrite another timer status.

## Comments

### @nathansl-cell · 2026-11-15 · 0 net votes

In browsers, background tabs throttle `setTimeout`, so compute remaining time from `Date.now()` deadlines rather than counting ticks, and keep each timer handle so `clearTimeout` can cancel a specific one. Seen another edge case with this? Add it below.
