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

task: document non-guarantees of yield_now #4091

Merged
merged 1 commit into from
Sep 8, 2021
Merged

Conversation

Darksonn
Copy link
Contributor

@Darksonn Darksonn commented Sep 8, 2021

People are sometimes confused by the behavior of yield_now(). Hopefully this should help a bit.

This PR also removes the cfg_rt! macro as rustfmt doesn't work inside it. There is another use of cfg_rt! around yield_now in tokio/src/task/mod.rs.

@Darksonn Darksonn added T-docs Topic: documentation A-tokio Area: The main tokio crate M-task Module: tokio/task labels Sep 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tokio Area: The main tokio crate M-task Module: tokio/task T-docs Topic: documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants