diff --git a/README.md b/README.md index da65bb0d0e836..5660c920a7e28 100644 --- a/README.md +++ b/README.md @@ -36,20 +36,20 @@ ## What is this repo? -[Nodejs.org](https://nodejs.org/) by the [OpenJS Foundation](https://openjsf.org/) is the official website for the Node.js® JavaScript runtime. This repo is the source code for the website. It is built using [Next.js](https://nextjs.org), a React Framework. +[Nodejs.org](https://nodejs.org/), maintained by the [OpenJS Foundation](https://openjsf.org/), is the official website for the Node.js® JavaScript runtime. This repo is the source code for the website. It is built using [Next.js](https://nextjs.org), a React Framework. ```bash pnpm install --frozen-lockfile pnpm dev -# listening at localhost:3000 +# Listening at http://localhost:3000 ``` ## Contributing This project adopts the Node.js [Code of Conduct][]. -Any person who wants to contribute to the Website is welcome! Please read [Contribution Guidelines][] and see the [Figma Design][] to understand better the structure of this repository. +Anyone who wants to contribute to the website is welcome! Please read [Contribution Guidelines][] and see the [Figma Design][] to understand better the structure of this repository. > \[!IMPORTANT]\ > Please read our [Translation Guidelines][] before contributing to Translation and Localization of the Website diff --git a/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md b/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md index 276f1d1b9cf6c..b02e0035ae44f 100644 --- a/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md +++ b/apps/site/pages/en/learn/asynchronous-work/understanding-setimmediate.md @@ -20,7 +20,7 @@ How is `setImmediate()` different from `setTimeout(() => {}, 0)` (passing a 0ms A function passed to `process.nextTick()` is going to be executed on the current iteration of the event loop, after the current operation ends. This means it will always execute before `setTimeout` and `setImmediate`. -A `setTimeout()` callback with a 0ms delay is very similar to `setImmediate()`. The execution order will depend on various factors, but they will be both run in the next iteration of the event loop. +A `setTimeout()` callback with a 0ms delay is very similar to `setImmediate()`. The execution order will depend on various factors, but they will be both run in the next iteration (the first one) of the event loop when called from the main module. When scheduled inside an I/O callback, setImmediate is guaranteed to run in the current iteration's **check** phase, while setTimeout must wait for the **timers** phase of the subsequent iteration. A `process.nextTick` callback is added to `process.nextTick queue`. A `Promise.then()` callback is added to `promises microtask queue`. A `setTimeout`, `setImmediate` callback is added to `macrotask queue`.