O'Reilly logo

Multithreading with C# Cookbook - Second Edition 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# 6.0

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

  • 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
  • Avoiding the use of the captured synchronization context
  • Working around the async void method
  • Designing a custom awaitable type
  • Using the dynamic type with await

Introduction

Until now, you learned about the Task Parallel Library, the latest asynchronous programming infrastructure from Microsoft. It ...

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