We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c86e7d commit 1c74d49Copy full SHA for 1c74d49
04-asynchronous-control-flow-patterns-with-callbacks/await.mjs
@@ -0,0 +1,23 @@
1
+
2
+setTimeout(async () => {
3
+ console.log("1");
4
+ Promise.resolve("promise 2").then(console.log);
5
+ setImmediate(() => console.log("setImmediate 3"));
6
+ console.log("4");
7
+ process.nextTick(() => console.log("nextTick 5"));
8
+ console.log("6");
9
+}, 0);
10
11
12
+ console.log("--------------------------");
13
+}, 100);
14
15
16
17
18
19
20
+ console.log(await "await 4");
21
22
23
+}, 200);
0 commit comments