Skip to main content

Remove async/await

PropertyValue
IdRR0209
Applicable Syntaxmethod declaration, local function, lambda, anonymous method
Syntax Spanasync 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