Skip to content

Improve thread startup/shutdown algorithm in spawn_blocking #510

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

Merged
merged 3 commits into from Nov 11, 2019
Merged

Improve thread startup/shutdown algorithm in spawn_blocking #510

merged 3 commits into from Nov 11, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 11, 2019

This PR changes the algorithm so that we don't accidentally end up with a lot of long-running threads. The new strategy is to aggressively shut down blocking threads if there are many of them waiting for work.

@ghost ghost requested a review from skade November 11, 2019 23:36
@skade skade merged commit 54371c2 into async-rs:master Nov 11, 2019
@ghost ghost deleted the fix-spawn-blocking branch November 11, 2019 23:40
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.

1 participant