Remove async/await
Property | Value |
---|---|
Id | RR0209 |
Applicable Syntax | method declaration, local function, lambda, anonymous method |
Syntax Span | async keyword |
Enabled by Default | ✓ |
Usage
Example #1
before.cs
class C
{
async Task<object> FooAsync()
{
return await BarAsync().ConfigureAwait(false);
}
}
after.cs
class C
{
Task<object> FooAsync()
{
return BarAsync();
}
}
Configuration
roslynator_refactoring.remove_async_await.enabled = true|false