Skip to content

Instantly share code, notes, and snippets.

@Andarist
Created March 13, 2023 12:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Andarist/f1c7866c326a3ed7f80d2216739ef38f to your computer and use it in GitHub Desktop.
Save Andarist/f1c7866c326a3ed7f80d2216739ef38f to your computer and use it in GitHub Desktop.
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