Cancellation and Exception Handling
摘要
In previous chapters, we explored how to create numerous tasks to achieve parallelism. In this chapter, we will focus on two essential aspects of task management: canceling tasks and handling exceptions that may arise within them.