Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 807 Bytes

File metadata and controls

20 lines (14 loc) · 807 Bytes

AL1304: Prefer 'await using' for IAsyncDisposable

Property Value
Severity Warning
Category Reliability
Code fix No
Analyzer Al1304PreferAwaitUsingAnalyzer
Enabled by default Yes

Description

Types implementing IAsyncDisposable should be disposed with 'await using' in async methods. Using 'using' calls the synchronous Dispose() method instead of DisposeAsync(), which may skip async cleanup such as flushing buffers, closing network connections, or finalizing telemetry export.

See also