Skip to content

task: stabilize consume_budget #6622

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

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
@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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy