-
Notifications
You must be signed in to change notification settings - Fork 30.4k
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
run microtasks before ticks #51267
run microtasks before ticks #51267
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -863,6 +863,20 @@ Use this flag to generate a blob that can be injected into the Node.js | |
binary to produce a [single executable application][]. See the documentation | ||
about [this configuration][`--experimental-sea-config`] for details. | ||
|
||
|
||
### `--experimental-task-ordering` | ||
|
||
<!-- YAML | ||
added: REPLACEME | ||
--> | ||
|
||
> Stability: 1 - Experimental | ||
|
||
Enable experimental task ordering. Always drain micro task queue | ||
before running `process.nextTick` to avoid unintuitive behavior | ||
and unexpected logical deadlocks when mixing async callback and | ||
event API's with `Promise`, `async`/`await`` and `queueMicroTask`. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you provide some examples? Without examples I doubt how many users would be able to recognize whether this can be useful for them and pick up this option. Also note that we have a section in process.md saying..
I think that should be updated to mention this option. |
||
|
||
### `--experimental-shadow-realm` | ||
|
||
<!-- YAML | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would also be useful to link to a doc like https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide#microtasks here.