Please log in to watch this conference skillscast.
The most complicated state in an application is time. Like cooking a bag of microwave popcorn, modern web applications desperately try to keep up with their state through an orchestrated chaos of asynchronous operations popping off in indeterminate cadence. No question, coordinating all this concurrency is hard.
But there's a pitfall at the heart of asynchrony that stays mostly unaddressed.
When an operation doesn't finish right away, synchronously, it's possible the operation may never finish. Or, it may be destined to finish eventually, but a second operation may be raised which means we no longer care about the first. Whatever the case, we need to be able to cancel it. This critical check ultimately protects users from the vagaries of unpredictable systems.
Cancellation should be core to our async programming; no asynchrony should run without it. Too often, such handling is just a corner case exception. Without a cancellation strategy, your applications are incomplete at best.
We'll discuss use-cases for async cancellation and various approaches to managing them.
YOU MAY ALSO LIKE:
- Hooked On Hooks with Kyle Simpson (in Perth on 21st September 2022)
- YOW! Perth Developer Conference 2022: Online (Online Conference on 19th - 20th September 2022)
- YOW! Perth Developer Conference 2022: In-Person (in Perth on 19th - 20th September 2022)
- Cancel All My Appointments (SkillsCast recorded in December 2018)
- Jepsen 13 (SkillsCast recorded in December 2020)
- Launching an Internal Developer Community (SkillsCast recorded in December 2020)