Skip to content

Conversation

maminrayej
Copy link
Member

This PR makes the coop module public and exposes the has_budget_remaining function.

The motivation for this is to make select! budget-aware (see #7108). The exposed functionality is also useful when dealing with a combination of budget-aware and non-budget-aware futures.

Related to #7111.

@maminrayej maminrayej added A-tokio Area: The main tokio crate M-coop Module: tokio/coop labels Jan 21, 2025
@github-actions github-actions bot added R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt R-loom-sync Run loom sync tests on this PR labels Jan 21, 2025
@github-actions github-actions bot removed R-loom-sync Run loom sync tests on this PR R-loom-multi-thread-alt R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-current-thread Run loom current-thread tests on this PR labels Jan 21, 2025
@maminrayej maminrayej added the M-runtime Module: tokio/runtime label Jan 21, 2025
@github-actions github-actions bot added R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-multi-thread-alt R-loom-sync Run loom sync tests on this PR labels Jan 22, 2025
@maminrayej maminrayej merged commit 605ef57 into tokio-rs:master Feb 14, 2025
88 checks passed
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 M-runtime Module: tokio/runtime R-loom-current-thread Run loom current-thread tests on this PR R-loom-multi-thread Run loom multi-thread tests on this PR R-loom-sync Run loom sync tests on this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants