RCS1090: Add/remove 'ConfigureAwait(false)' call
Properties
| Property | Value |
|---|---|
| Default Severity | disabled 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