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 the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.