Skip to content

Suggestion: improved generator usage #1851

@johndeighan

Description

@johndeighan

It really annoys me that there's no way to get the final return value from an iterator when using either the for ... of ... loop or Array.fromAsync(). I'm not sure what the syntax should be, but I find using iterator.next() to do that makes the code much harder to understand.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions