Skip to content

Commit 421e38b

Browse files
committed
fix: resolve merge conflicts and standardize language in micro and macro task explanation
1 parent b0a8df5 commit 421e38b

File tree

1 file changed

+1
-8
lines changed
  • 2-ui/99-ui-misc/03-event-loop/2-micro-macro-queue

1 file changed

+1
-8
lines changed

2-ui/99-ui-misc/03-event-loop/2-micro-macro-queue/solution.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,18 +40,11 @@ console.log(7);
4040

4141
To summarize,
4242

43-
<<<<<<< HEAD
44-
1. Numbers `1` и `7` show up immediately, because simple `console.log` calls don't use any queues.
45-
2. Then, after the main code flow is finished, the microtask queue runs.
46-
- It has commands: `console.log(3); setTimeout(...4); console.log(5)`.
47-
- Numbers `3` и `5` show up, while `setTimeout(() => console.log(4))` adds the `console.log(4)` call to the end of the macrotask queue.
48-
=======
4943
1. Numbers `1` and `7` show up immediately, because simple `console.log` calls don't use any queues.
5044
2. Then, after the main code flow is finished, the microtask queue runs.
5145
- It has commands: `console.log(3); setTimeout(...4); console.log(5)`.
5246
- Numbers `3` and `5` show up, while `setTimeout(() => console.log(4))` adds the `console.log(4)` call to the end of the macrotask queue.
53-
>>>>>>> d78b01e9833009fab534462e05c03cffc51bf0e3
5447
- The macrotask queue is now: `console.log(2); console.log(6); console.log(4)`.
5548
3. After the microtask queue becomes empty, the macrotask queue executes. It outputs `2`, `6`, `4`.
5649

57-
Finally, we have the output: `1 7 3 5 2 6 4`.
50+
Finally, we have the output: `1 7 3 5 2 6 4`.

0 commit comments

Comments
 (0)