ReSharper 2026.1 Help

Code inspection: Missing '.ConfigureAwait(false)' for async disposable in library code

This inspection reports an async disposable used without .ConfigureAwait(false) in library code. In library code, this helps avoid capturing the current context during asynchronous disposal.

Example

await using var resource = CreateAsyncResource();
await using var resource = CreateAsyncResource().ConfigureAwait(false);

Quick-fix

The quick-fix adds .ConfigureAwait(false) to the async disposable.

01 April 2026