You’ve finished Concurrency, Failures and Cancellation in Async Code.
In This Course, You Learned How To
- Start async work together, and report which jobs worked
- Run async work one at a time or all together, on purpose
- Handle failures so none goes unheard
- Give up on slow work with timeouts and cancellation
- Find and fix race conditions
- Build the Lindqvists’ morning routine
The Lindqvists’ Morning, Step by Step
Await one device at a time, and the morning took twelve seconds. Start them all, then wait, and it took six.
When the blinds failed, Promise.all() rejected at two seconds, but the others still finished. Promise.allSettled() waited for all four and reported which worked.
A rejection nobody owns stops Node. So every promise got an owner, and you caught its error where you could respond.