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

macros: make select budget-aware #7111

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

maminrayej
Copy link
Member

This PR introduces a new function called poll_budget_available which can be called in order to poll for budget availability. This is then used in select!, before polling the branches, in order to make select budget-aware.

Resolves #7108.

@maminrayej maminrayej added A-tokio Area: The main tokio crate M-task Module: tokio/task M-macros Module: macros in the main Tokio crate labels Jan 18, 2025
@maminrayej maminrayej force-pushed the feat/budget-aware-select branch from ec44313 to 762526e Compare January 18, 2025 20:06
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-macros Module: macros in the main Tokio crate M-task Module: tokio/task
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MPSC queue hangs on repeated polling
1 participant