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.
Introduction to Exceptions
In a multithreaded environment, handling exceptions can be tricky. The reason is obvious: different tasks may throw different ...