Skip to content

Stream.prototype.forEach will block in first promise in queue before read more chunk #66106

Description

@zyf0330

Affected URL(s)

No response

Description of the problem

The forEach supports concurrency run fn on chunk, but actually it implements by map which causes that before first promise in queue ends, it doesn't read more chunk and run into queue.
I think doc should clear this.

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

    docIssues and PRs related to Node.js documentation.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions