Created
March 13, 2023 12:37
-
-
Save Andarist/f1c7866c326a3ed7f80d2216739ef38f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const microtask = () => {} | |
async function test() { | |
queueMicrotask(() => { | |
console.log("1"); | |
queueMicrotask(() => { | |
console.log("2"); | |
}); | |
}); | |
await microtask(); | |
console.log("3"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment