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 3de1257

Browse filesBrowse files
theanarkhRafaelGSS
authored andcommitted
doc: add more info for timer.setInterval
PR-URL: #45232 Refs: #45224 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent 5a1252d commit 3de1257
Copy full SHA for 3de1257

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/timers.md‎

Copy file name to clipboardExpand all lines: doc/api/timers.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,8 @@ added: v15.9.0
442442
-->
443443

444444
Returns an async iterator that generates values in an interval of `delay` ms.
445+
If `ref` is `true`, you need to call `next()` of async iterator explicitly
446+
or implicitly to keep the event loop alive.
445447

446448
* `delay` {number} The number of milliseconds to wait between iterations.
447449
**Default:** `1`.

0 commit comments

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