Skip to content

Commit

Permalink
doc: add more info for timer.setInterval
Browse files Browse the repository at this point in the history
  • Loading branch information
theanarkh committed Oct 29, 2022
1 parent 806ea92 commit 5bb43d9
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.
And 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 5bb43d9

Please sign in to comment.