This chapter covers
- The await threading behavior
- Understanding SynchronizationContext
- When to use ConfigureAwait
- Using Task.Yield
- The basics of TaskScheduler
Most of the time, you don’t care on which thread your code runs. If you calculate something, your calculation will produce the exact same result regardless of the thread or CPU core it runs on. But some operations do work differently, depending on the thread that runs them, the most common being