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

Fix async wake behavior #1785

Merged
merged 1 commit into from
Oct 11, 2023
Merged

Fix async wake behavior #1785

merged 1 commit into from
Oct 11, 2023

Conversation

bendk
Copy link
Contributor

@bendk bendk commented Oct 9, 2023

If wake() is called while we are in the middle of polling a future, then we should immediately call our continuation function to schedule another poll.

@bendk bendk requested a review from a team as a code owner October 9, 2023 18:22
@bendk bendk requested review from mhammond and jplatte and removed request for a team October 9, 2023 18:22
@bendk bendk force-pushed the async-wake-fix branch 2 times, most recently from 6e2a088 to 8284621 Compare October 9, 2023 18:29
If wake() is called while we are in the middle of polling a future, then
we should immediately call our continuation function to schedule another
poll.
@jplatte
Copy link
Collaborator

jplatte commented Oct 11, 2023

cc @Hywan

@jplatte
Copy link
Collaborator

jplatte commented Oct 11, 2023

Empirically, this seems to fix all of our problems with the rewritten async methods!

Copy link
Contributor

@Hywan Hywan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM :-).

@bendk bendk merged commit 48b1f51 into mozilla:main Oct 11, 2023
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.

3 participants