Skip to content

Spawn more than one blocking thread #475

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
3 commits merged into from Nov 7, 2019
Merged

Spawn more than one blocking thread #475

3 commits merged into from Nov 7, 2019

Conversation

ghost
Copy link

@ghost ghost commented Nov 7, 2019

This fixes a bug where only one thread was ever spawned :)

@ghost ghost mentioned this pull request Nov 7, 2019
@ghost
Copy link
Author

ghost commented Nov 7, 2019

Just did some interactive testing by spawning a bunch of blocking tasks that sleep for a random number of time and it seems the blocking pool now does exactly what it should: more threads are spawned on demand and we stop threads when they have no work to do.

@ghost ghost merged commit f588ba6 into async-rs:master Nov 7, 2019
@ghost ghost deleted the spawn-more-blocking branch November 7, 2019 23:39
This pull request was closed.
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.

0 participants