Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions content/learn/asynchronous-work/node-process-nexttick.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ Use `nextTick()` when you want to make sure that in the next event loop iteratio
```js
console.log("Hello => number 1");

setTimeout(() => {
console.log("The timeout running last => number 4");
}, 0);

setImmediate(() => {
console.log("Running before the timeout => number 3");
});

setTimeout(() => {
console.log("The timeout running last => number 4");
}, 0);

process.nextTick(() => {
console.log("Running at next tick => number 2");
});
Expand All @@ -45,6 +45,6 @@ process.nextTick(() => {
```bash
Hello => number 1
Running at next tick => number 2
The timeout running last => number 4
Running before the timeout => number 3
The timeout running last => number 4
```