Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 64ac5c6

Browse filesBrowse files
wjabbourruyadorno
authored andcommitted
doc: fix small grammatical issues in timers.md
PR-URL: #35203 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 8357b56 commit 64ac5c6
Copy full SHA for 64ac5c6

File tree

Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+8
-9
lines changed
Open diff view settings
Collapse file

‎doc/api/timers.md‎

Copy file name to clipboardExpand all lines: doc/api/timers.md
+8-9Lines changed: 8 additions & 9 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,14 @@ of the Node.js application.
130130
added: v14.9.0
131131
-->
132132

133-
* Returns: {integer} number that can be used to reference this `timeout`
134-
135-
Coerce a `Timeout` to a primitive, a primitive will be generated that
136-
can be used to clear the `Timeout`.
137-
The generated number can only be used in the same thread where timeout
138-
was created. Therefore to use it cross [`worker_threads`][] it has
139-
to first be passed to a correct thread.
140-
This allows enhanced compatibility with browser's `setTimeout()`, and
141-
`setInterval()` implementations.
133+
* Returns: {integer} a number that can be used to reference this `timeout`
134+
135+
Coerce a `Timeout` to a primitive. The primitive can be used to
136+
clear the `Timeout`. The primitive can only be used in the
137+
same thread where the timeout was created. Therefore, to use it
138+
across [`worker_threads`][] it must first be passed to the correct
139+
thread. This allows enhanced compatibility with browser
140+
`setTimeout()` and `setInterval()` implementations.
142141

143142
## Scheduling timers
144143

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.