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: stabilize consume_budget #6622

Merged
merged 1 commit into from
Jun 8, 2024

Conversation

robjtede
Copy link
Contributor

@robjtede robjtede commented Jun 7, 2024

Motivation

This utility seems simple and complete. Stabilizing it avoids the need for workarounds to consuming/reading Tokio's task budgets such as abusing io::Empty.

Solution

Stabilize task::consume_budget().

@robjtede robjtede marked this pull request as ready for review June 7, 2024 21:45
@Darksonn Darksonn added A-tokio Area: The main tokio crate M-coop Module: tokio/coop labels Jun 8, 2024
Copy link
Contributor

@Darksonn Darksonn left a comment

Choose a reason for hiding this comment

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

Thank you.

@Darksonn Darksonn merged commit 53b586c into tokio-rs:master Jun 8, 2024
82 checks passed
@robjtede robjtede deleted the stabilize-consume-budget branch June 8, 2024 20:17
This was referenced Jul 22, 2024
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-coop Module: tokio/coop
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants