mirror of
https://github.com/nodejs/node.git
synced 2026-12-03 18:03:02 -05:00
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:
1 parent
4a258b2060
commit
4fc6ef53bc
1 file changed
+2
@@ -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`.
|
||||
|
||||
Reference in new issue
Block a user