Skip to main content

RCS1090: Add/remove 'ConfigureAwait(false)' call

Properties​

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples​

Example #1​

diagnostic.cs
public async Task FooAsync()
{
await GetValueAsync();
}
fix.cs
public async Task FooAsync()
{
await GetValueAsync().ConfigureAwait(false);
}

Configuration​

info

Option roslynator_configure_await is required to be set for this analyzer to work.

.editorconfig
# Add/remove 'ConfigureAwait(false)' call
roslynator_configure_await = true|false

Applies to​