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

runtime: check Enter in more places when blocking #708

Merged
merged 1 commit into from
Oct 17, 2018
Merged

runtime: check Enter in more places when blocking #708

merged 1 commit into from
Oct 17, 2018

Conversation

seanmonstar
Copy link
Member

  • tokio::run checks Enter before creating a new threadpool and
    spawning the main future.
  • Runtime::block_on now checks Enter
  • Runtime::block_on_all now checks Enter

Includes a matrix of tests of calling each of these (and current_thread), to prevent regressions.

@seanmonstar
Copy link
Member Author

Um, clicking the Travis link says the build finished, but it's still pending here...

- `tokio::run` checks Enter before creating a new threadpool and
  spawning the main future.
- `Runtime::block_on` now checks Enter
- `Runtime::block_on_all` now checks Enter
@seanmonstar seanmonstar merged commit 7b5ef61 into tokio-rs:master Oct 17, 2018
@seanmonstar seanmonstar deleted the enter-moar branch October 17, 2018 22:25
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.

2 participants