Skip to content

await foreach -- new language feature (test case available) #13

Description

@goojal

Compiler generates a different IAsyncStateMachine for await foreach to handle iteration on async enumerables. It contains a MoveNextAsync method beside MoveNext. So we can find this pattern by checking if this method exists and based on that transform the statements to await foreach.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions