Skip to content

feat: add yield_now to drive reactor from sync code#254

Open
SAY-5 wants to merge 1 commit into
smol-rs:masterfrom
SAY-5:feat/yield-now
Open

feat: add yield_now to drive reactor from sync code#254
SAY-5 wants to merge 1 commit into
smol-rs:masterfrom
SAY-5:feat/yield-now

Conversation

@SAY-5

@SAY-5 SAY-5 commented May 13, 2026

Copy link
Copy Markdown

Adds a non-blocking yield_now() that takes the reactor lock with try_lock and calls react with a zero timeout, matching the implementation sketch from notgull on the issue. Defaults are preserved: callers that never invoke yield_now see no behavior change.

Closes #241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

A yield_now variant

1 participant