O'Reilly logo

Multithreading in C# 5.0 Cookbook by Eugene Agafonov

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 5. Using C# 5.0

In this chapter, we will look through the native asynchronous programming support in the C# 5.0 programming language. You will learn about the following:

  • Using the await operator to get asynchronous task results
  • Using the await operator in a lambda expression
  • Using the await operator with consequent asynchronous tasks
  • Using the await operator for the execution of parallel asynchronous tasks
  • Handling exceptions in asynchronous operations
  • Avoid using the captured synchronization context
  • Working around the async void method
  • Designing a custom awaitable type
  • Using the dynamic type with await

Introduction

Until now, we learned about Task Parallel Library, the latest asynchronous programming infrastructure from Microsoft. It allows us to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required