Skip to content

Commit

Permalink
doc: add more info for timer.setInterval
Browse files Browse the repository at this point in the history
PR-URL: nodejs#45232
Refs: nodejs#45224
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
  • Loading branch information
theanarkh authored and lucshi committed Nov 9, 2022
1 parent dca9733 commit 6b5a40e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/timers.md
Expand Up @@ -442,6 +442,8 @@ added: v15.9.0
-->

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

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

0 comments on commit 6b5a40e

Please sign in to comment.