Skip to content

IAsyncEnumerable seems to confuse AsyncFixer01 #41

@grosch-intl

Description

@grosch-intl

This will say it doesn't need to use async/await, which I think is wrong:

public async Task ProcessAsync(CancellationToken cancellationToken) {
    await foreach (var entry in client.GetFilesAsync(cancellationToken))
        // do something

    await database.SaveChangesAsync(cancellationToken);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions