Skip to content

stream: fix `flatMap` concurrency

Fixes: https://github.com/nodejs/node/issues/52796 this PR causes flatMap to iterate over the stream and mapped iterators in round-robin. I am not sure if this is the best approach but also not sure if there is a better one. I am also not exactly sure how to test this I'd love to hear opinions from @nodejs/streams folks.

Merge request reports

Loading