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

DynamicWorkerThreadFactory no longer manages max threads #1589

Open
wants to merge 3 commits into
base: series/3.x
Choose a base branch
from

Conversation

ghik
Copy link
Contributor

@ghik ghik commented Jun 15, 2022

Fixes #1588

DynamicWorkerThreadFactory was previously managing maxThreads parameter of Scheduler.forkJoin manually, instead of passing it to the ForkJoinPool itself. Now this is changed so that only the pool itself is responsible for that.

I don't exactly understand why this fixes the problem or why it wasn't done like that from the start. Therefore I'm not sure if I've done the right thing since I'm not fully familiar with nitty-gritty details of ForkJoinPool.

Management of max thread count is now delegated to the ForkJoinPool itself
@ghik ghik changed the base branch from series/4.x to series/3.x June 15, 2022 14:46
@ghik ghik marked this pull request as ready for review June 15, 2022 14:58
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.

Scheduler.forkJoin stops executing tasks after reaching its maximum thread count
1 participant