10 Functional combinators for fluent concurrent programming

This chapter covers

  • Handling exceptions in a functional style
  • Using built-in Task combinators
  • Implementing custom asynchronous combinators and conditional operators
  • Running parallel asynchronous heterogeneous computations

In the previous two chapters, you learned how to apply asynchronous programming to develop scalable and performant systems. You applied functional techniques to compose, control, and optimize the execution of multiple tasks in parallel. This chapter further raises the level of abstraction for expressing asynchronous computations in a functional style.

We’ll start by looking at how to manage exceptions in a functional style, with a focus on asynchronous operations. ...

Get Concurrency in .NET now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.