Skip to main content

RCS1174: Remove redundant async/await

Properties​

PropertyValue
Default Severitydisabled by default
Minimum language version-

Examples​

Example #1​

diagnostic.cs
public static async Task<object> FooAsync()
{
return await GetAsync().ConfigureAwait(false);
}
fix.cs
public static Task<object> FooAsync()
{
return GetAsync();
}

Applies to​