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

Enhance documentation of tokio::task::block_in_place #2155

Merged
merged 1 commit into from
Jan 22, 2020

Conversation

gliderkite
Copy link
Contributor

This is a very small change to enhance the documentation of tokio::task::block_in_place with a Note, and also a change to the error message when the runtime panics because unable to run tokio::task::block_in_place from a not spawned task.

Motivation

The previous error message was slightly misleading when stating that the error was due to being unable to call tokio::task::block_in_place because not running on the Tokio runtime.

Copy link
Member

@LucioFranco LucioFranco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks!

@LucioFranco LucioFranco merged commit 5bbf976 into tokio-rs:master Jan 22, 2020
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.

None yet

2 participants