Premium

Name-Keyed Task Scheduler: One Lane per Name, with Cancel and Clear

By FrontendAtlas Editorial · Updated Nov 26, 2026

Challenge summary

Build a scheduler that runs async tasks one at a time per name and side by side across names, with cancel, clear and events, the kind of control a dashboard needs for background saves and uploads.

What you'll practice

  • Keep a first-in, first-out queue per key and start the next task only when one settles.
  • Cancel running work with an AbortSignal and reject it with an AbortError.
  • Make a promise settle exactly once, even when the cancelled task answers later.
  • Fire start, done, error and cancel events in an order a UI can rely on.

What Premium unlocks

Premium unlocks the runnable workspace, behavioral checks, implementation walkthrough, and edge-case discussion.

Free related practice

Upgrade to FrontendAtlas Premium to unlock this challenge. Already upgraded? Sign in to continue.

Premium is $24 a month or $99 a year, less in many countries.