Description
Calling.Result, .Wait(), or .GetAwaiter().GetResult() inside an async method can cause deadlocks, especially in contexts with a SynchronizationContext.
Bad Code
Good Code
Properties
- Category: Threading
- Severity: Warning
- Enabled by default: True
- Code fix available: False
