DEV Community

Discussion on: Difference between microtask and macrotask queue in the event loop

Collapse
 
hvbairagi profile image
Harsh Vardhan Bairagi

fetch also returns a promise how will it be handled, in microtask queue or macrotask queue?

Collapse
 
anikets profile image
Aniket A. Suryavanshi

Since it's a promise, it will be handled by the microtask queue.