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: #45232
Refs: #45224
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
  • Loading branch information
theanarkh authored Nov 6, 2022
1 parent 4a258b2 commit 4fc6ef5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/timers.md
Original file line number Diff line number Diff line change
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 4fc6ef5

Please sign in to comment.