Skip to content

Latest commit

 

History

History
11 lines (8 loc) · 314 Bytes

MA0157.md

File metadata and controls

11 lines (8 loc) · 314 Bytes

MA0157 - Do not use 'Async' suffix when a method does not return IAsyncEnumerable<T>

Methods that do not return IAsyncEnumerable<T> should not have the Async suffix.

// compliant
IAsyncEnumerable<string> Foo() => throw null;

// non-compliant
IAsyncEnumerable<string> FooAsync() => throw null;