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

[WIP] upgrade: tokio 0.3 #7988

Closed
wants to merge 1 commit into from
Closed

Conversation

bartlomieju
Copy link
Member

Closes #7984

@@ -133,7 +133,7 @@ async fn post_message_and_poll(
// A zero delay is long enough to yield the thread in order to prevent the loop from
// running hot for messages that are taking longer to resolve like for example an
// evaluation of top level await.
tokio::time::delay_for(tokio::time::Duration::from_millis(0)).await;
tokio::time::sleep(tokio::time::Duration::from_millis(0)).await;
Copy link

Choose a reason for hiding this comment

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

Unrelated to tokio 0.3 upgrade, but I think using tokio::task::yield_now would be better here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

As far as I remember I tried that early on and it spun hot at 100% but I'll take a look at it again now.

Copy link
Contributor

Choose a reason for hiding this comment

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

Yeah it'll turn hot 😕

Screenshot 2020-10-20 at 8 47 03 PM

@bartlomieju
Copy link
Member Author

We need to do a lot of refactors before migration to Tokio 0.3 becomes feasible. Closing for now.

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.

upgrade to tokio 1.0
3 participants