Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@adamgfraser
Copy link
Contributor

Resolves #4146.

@adamgfraser adamgfraser requested review from iravid and jdegoes January 24, 2021 01:49
Copy link
Member

@iravid iravid left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice. Probably much more efficient too compared to the use of n promises.

@adamgfraser
Copy link
Contributor Author

Yes. And the queue was unnecessarily being created with a size equal to the specified parallelism so it was applying back pressure on each value being offered to the queue.

@adamgfraser adamgfraser merged commit 6c12e2e into zio:master Jan 24, 2021
@adamgfraser adamgfraser deleted the foreachParN branch January 24, 2021 08:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ZManaged#foreachParN test flakiness

2 participants