Module 12 · Async 1: Callbacks and the Event Loop
Full Programs with Callbacks: a Countdown, a Debounce, a Scheduler, Callback Hell and a Job Pool
Free with an accountReading
Sumon runs the tech side of a small online shop. This week he needs a flash-sale countdown and a search box that waits for a pause in typing. He also needs a nightly job list, some file reads, and a downloader that opens at most three connections. None of it needs a new idea. Every one of them is timers and callbacks, put together with care.
Checking what this lesson needs for you…
What is inside Full Programs with Callbacks: a Countdown, a Debounce, a Scheduler, Callback Hell and a Job Pool
- A countdown with setInterval
- A debounce with real timers
- A scheduler, and why timers run late
- A fake file read in the error-first shape
- Callback hell, shown honestly
- A job pool with a limit
- A tiny event loop of your own