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

New scheduler #733

Merged
merged 15 commits into from
Apr 7, 2020
Merged

New scheduler #733

merged 15 commits into from
Apr 7, 2020

Conversation

k-nasa
Copy link
Member

@k-nasa k-nasa commented Mar 20, 2020

This PR is a successor to #631 .

This PR contains only the following parts:

This PR replaces the current scheduler with a new one. Differences:

  • The executor and reactor are more closely coupled. We don't have a networking driver thread anymore. Instead, executor threads poll mio.

What we did in this PR

  • Removed the mechanism to launch a new thread.
  • Revived spawn_blocking

@k-nasa k-nasa marked this pull request as ready for review March 20, 2020 14:50
@k-nasa k-nasa requested a review from yoshuawuyts March 22, 2020 11:13
@yoshuawuyts
Copy link
Contributor

@k-nasa overall this looks good; I can't spot any bugs through review. But still, the fact that a few bugs slipped through CI on an earlier round makes me feel a bit nervous about merging it as-is; I didn't write this part of the code, and don't trust myself to do a full review.

What would help here is if we could add more tests -- at least some we know would have failed if we hadn't caught them during review. Having those would provide more confidence that these changes actually work as intended. Thanks!

@dignifiedquire
Copy link
Member

dignifiedquire commented Mar 22, 2020 via email

@k-nasa
Copy link
Member Author

k-nasa commented Mar 30, 2020

@yoshuawuyts @dignifiedquire What about publishing in version 1.6.0-alpha?

@dignifiedquire
Copy link
Member

@k-nasa yes, that is the current plan. Cutting an alpha prerelease with this and get folks testing.

@dignifiedquire dignifiedquire merged commit fc4e472 into async-rs:master Apr 7, 2020
@dignifiedquire
Copy link
Member

This has been merged to master, we will be releasing a 1.6.0-alpha soon, so please start using either in your projects to test this well.

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.

3 participants