Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Merge branch 'search-lunr' of github.com:benhalverson/nodejs.dev into…
Browse files Browse the repository at this point in the history
… search-lunr
  • Loading branch information
benhalverson committed Oct 17, 2021
2 parents 5200ee0 + a8fe786 commit 2537fa9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"prettier": "^2.4.1",
"remark-cli": "^10.0.0",
"remark-frontmatter": "^4.0.0",
"remark-preset-lint-node": "^3.1.0",
"remark-preset-lint-node": "^3.2.0",
"stylelint": "^13.13.1",
"stylelint-config-prettier": "^8.0.2",
"stylelint-config-recommended-scss": "^4.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/documentation/0029-node-event-loop/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ Why is this happening?

When setTimeout() is called, the Browser or Node.js starts the timer. Once the timer expires, in this case immediately as we put 0 as the timeout, the callback function is put in the **Message Queue**.

The Message Queue is also where user-initiated events like click or keyboard events, or fetch responses are queued before your code has the opportunity to react to them. Or also DOM events like `onLoad`.
The Message Queue is also where user-initiated events like click or keyboard events, or fetch responses are queued before your code has the opportunity to react to them. Or also DOM events like `onload`.

**The loop gives priority to the call stack, and it first processes everything it finds in the call stack, and once there's nothing in there, it goes to pick up things in the message queue.**

Expand Down

0 comments on commit 2537fa9

Please sign in to comment.