Source: Al0105AvoidBlockingCallsInAsyncAnalyzer.csDocumentation Index
Fetch the complete documentation index at: https://ancplua.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
