File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
04-asynchronous-control-flow-patterns-with-callbacks Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ setTimeout(async () => {
3
3
console . log ( "1" ) ;
4
4
Promise . resolve ( "promise 2" ) . then ( console . log ) ;
5
5
setImmediate ( ( ) => console . log ( "setImmediate 3" ) ) ;
6
- console . log ( "4" ) ;
7
- process . nextTick ( ( ) => console . log ( "nextTick 5" ) ) ;
6
+ process . nextTick ( ( ) => console . log ( "nextTick 4" ) ) ;
7
+ console . log ( "5" ) ;
8
8
console . log ( "6" ) ;
9
9
} , 0 ) ;
10
10
@@ -17,7 +17,7 @@ setTimeout(async () => {
17
17
console . log ( "1" ) ;
18
18
Promise . resolve ( "promise 2" ) . then ( console . log ) ;
19
19
setImmediate ( ( ) => console . log ( "setImmediate 3" ) ) ;
20
- console . log ( await "await 4") ;
21
- process . nextTick ( ( ) => console . log ( "nextTick 5") ) ;
20
+ process . nextTick ( ( ) => console . log ( "nextTick 4") ) ;
21
+ console . log ( await "await 5") ;
22
22
console . log ( "6" ) ;
23
23
} , 200 ) ;
You can’t perform that action at this time.
0 commit comments