doc: add more info for timer.setInterval

PR-URL: https://github.com/nodejs/node/pull/45232
Refs: https://github.com/nodejs/node/issues/45224
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
This commit is contained in:
theanarkh authored and GitHub committed 2022-11-06 17:45:23 +00:00
1 parent 4a258b2060
commit 4fc6ef53bc
1 file changed
+2
+2
View File
@@ -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`.