We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
minSize
maxSize
timeToLive
3.1
Set up a browser worker pool similar to this:
const pool = yield* Worker.makePoolSerialized({ minSize: 1, maxSize: Math.min(3, Math.ceil(navigator.hardwareConcurrency / 2)), timeToLive: Duration.seconds(10), })
The worker pool should gracefully shutting down and then terminating each worker until minSize is reached.
After more than 10 seconds, there are still the maxSize numbers of workers alive.
No response
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What version of Effect is running?
3.1
What steps can reproduce the bug?
Set up a browser worker pool similar to this:
What is the expected behavior?
The worker pool should gracefully shutting down and then terminating each worker until
minSize
is reached.What do you see instead?
After more than 10 seconds, there are still the
maxSize
numbers of workers alive.Additional information
No response
The text was updated successfully, but these errors were encountered: