-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Cover std::task::yield in Rust Tasks and Communication Tutorial #8461
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
Comments
part of #11755 |
Triage. In #8560, |
Is this still relevant? Tasks have changed a lot recently, I am unsure what the current state is. |
In general the entire tasks tutorial needs a revamp most likely, it hasn't been scrutinized in a long time (I think). |
Seems good, I will consider this issue to be 'revamp the task tutorial' then. |
#17325 means this will become a very niche function. It will almost never be the right tool to reach for. |
Since tasks are cooperatively scheduled, yielding is pretty important when using tasks with long running threads. It'd be good if the task and communication tutorial covered std::task::yield a bit, or at least mentioned it, to warn the gung-ho.
The text was updated successfully, but these errors were encountered: