Skip to content

nonblocking check of pollables when reactor is busy #78

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

pchickey
Copy link
Contributor

@pchickey pchickey commented Aug 8, 2025

Fixes #73.

Add test provided by @SilverMira in #70, tracked in #73.

Add a nonblock_check_pollables function to the reactor, for use in the "busy case" of the block_on loop. Factor out check_pollables, the common part of block_on_pollables and nonblock_check_pollables.

pchickey and others added 2 commits August 8, 2025 09:57
as provided by @SilverMira in #70, and tracked in #73

Co-authored-by: SilverMira <[email protected]>
sharing most of the implementation with block_on_pollables
@pchickey pchickey assigned yoshuawuyts and unassigned yoshuawuyts Aug 8, 2025
@pchickey pchickey requested a review from yoshuawuyts August 8, 2025 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Futures should be woken before calling Future::poll
2 participants