Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Special Case parJoin 1 #2557

Merged
merged 1 commit into from
Aug 13, 2021
Merged

Conversation

ChristopherDavenport
Copy link
Member

Most of this is an indentation change. White space should show that this is just

if (maxOpen === 1) outer.flatten
else ...

Basically meaning that when people select this, if the option selected is 1, then they don't pay any penalty for using this combinator.

@vasilmkd vasilmkd merged commit 4cbf6f2 into typelevel:main Aug 13, 2021
bastewart added a commit to bastewart/fs2 that referenced this pull request Aug 27, 2021
This avoids the penalty of using the combinator if there is no
concurrency. Analogous to typelevel#2557 which did the same for `parJoin`.
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.

2 participants