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.

错误:搜索内容不能为空,请输入英文关键词
错误:关键词超出字数限制,请精简
高级检索

Cancellation and Exception Handling

  • Michael J. Voss,
  • James R. Reinders

摘要

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.