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

Confusion in event loop explanation of microtask queue #37510

Open
iamharisai opened this issue Jan 6, 2025 · 0 comments
Open

Confusion in event loop explanation of microtask queue #37510

iamharisai opened this issue Jan 6, 2025 · 0 comments
Labels
Content:WebAPI Web API docs goal: clarity (Experimental label) Issues about unclear/confusing/inconcise content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.

Comments

@iamharisai
Copy link

MDN URL

https://developer.mozilla.org/en-US/docs/Web/API/HTML_DOM_API/Microtask_guide

What specific section or headline is this issue about?

https://arc.net/l/quote/iuxvdrho

What information was incorrect, unhelpful, or incomplete?

https://arc.net/l/quote/iuxvdrho This paragraph portraits that the oldest runnable task in the task queue will be executed first and then the microtasks in microtask queue will be executed in a single iteration of the event loop. Which is not true, as the microtask queue has priority.

What did you expect to see?

The mentioning of in a single iteration of the event loop, the microtasks queue will be executed first untill it is empty, and then the next iteration will look for empty call stack, then empty microtaskqueue then the oldest runnable task in the task queue will be executed.

Do you have any supporting links, references, or citations?

I am beginner in JS, so could be my fault to understand this.

Do you have anything more you want to share?

No response

MDN metadata

Page report details
@iamharisai iamharisai added the needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened. label Jan 6, 2025
@github-actions github-actions bot added the Content:WebAPI Web API docs label Jan 6, 2025
@caugner caugner added the goal: clarity (Experimental label) Issues about unclear/confusing/inconcise content. label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:WebAPI Web API docs goal: clarity (Experimental label) Issues about unclear/confusing/inconcise content. needs triage Triage needed by staff and/or partners. Automatically applied when an issue is opened.
Projects
None yet
Development

No branches or pull requests

2 participants