Skip to content

Commit 90a2892

Browse files
theanarkhdanielleadams
authored andcommitted
doc: add more info for timer.setInterval
PR-URL: #45232 Refs: #45224 Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
1 parent d2fc2aa commit 90a2892

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/timers.md

+2
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)