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

CurrentThread::turn should block on idle. #212

Merged
merged 1 commit into from
Mar 9, 2018

Conversation

carllerche
Copy link
Member

This patch fixes a bug where CurrentThread::turn is expected to block
even if the executor is idle.

The turn API is the low level interface for callers to interact with
the Sleep instance used by the CurrentThread instance. As such, a
call to turn is expected to call sleep once if the executor did not
perform any work.

This patch fixes a bug where `CurrentThread::turn` is expected to block
even if the executor is idle.

The `turn` API is the low level interface for callers to interact with
the `Sleep` instance used by the `CurrentThread` instance. As such, a
call to `turn` is expected to call `sleep` once if the executor did not
perform any work.
@carllerche carllerche merged commit cf7435b into tokio-rs:master Mar 9, 2018
@carllerche carllerche deleted the fix-current-thread-turn branch March 9, 2018 20:37
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