mirror of
https://github.com/denoland/deno.git
synced 2024-12-12 02:27:46 -05:00
19 lines
383 B
TypeScript
19 lines
383 B
TypeScript
|
console.log("sync 1");
|
||
|
setTimeout(() => {
|
||
|
console.log("setTimeout 1");
|
||
|
Promise.resolve().then(() => {
|
||
|
console.log("Promise resolve in setTimeout 1");
|
||
|
});
|
||
|
});
|
||
|
Promise.resolve().then(() => {
|
||
|
console.log("promise 1");
|
||
|
});
|
||
|
window.close();
|
||
|
console.log("sync 2");
|
||
|
setTimeout(() => {
|
||
|
console.log("setTimeout 2");
|
||
|
});
|
||
|
setTimeout(() => {
|
||
|
console.log("setTimeout 3");
|
||
|
}, 100);
|