Skip to content

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.

3 participants