September 2024
Intermediate to advanced
479 pages
6h 34m
English
In Chapter 1, you learned about various aspects of tasks including continuation tasks and nested tasks. In this chapter, I’ll continue the discussion of task programming, but this time the focus will be handling special scenarios such as exceptions and cancellations. Let’s get started.
In a multithreaded environment, handling exceptions can be tricky. The reason is obvious: different tasks may throw different exceptions. Since you are reading about the advanced concepts ...