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

Drain microtasks again after deferred tasks run #16857

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Jarred-Sumner
Copy link
Collaborator

What does this PR do?

Deferred tasks might call callbacks to JavaScript. We need to drain microtasks when calling into JavaScript. Therefore, we should drain microtasks after draining deferred tasks.

Whether or not we should recursively do this is another question.

How did you verify your code works?

Let's see what CI says about this.

@robobun
Copy link

robobun commented Jan 29, 2025

Updated 6:42 PM PT - Jan 28th, 2025

@Jarred-Sumner, your commit aa04bcc has some failures in Build #10720


🧪   try this PR locally:

bunx bun-pr 16857

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.

2 participants