File tree 1 file changed +12
-0
lines changed 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1661,12 +1661,24 @@ console.log(listenerCount(myEmitter, 'event'));
1661
1661
added:
1662
1662
- v13.6.0
1663
1663
- v12.16.0
1664
+ changes:
1665
+ - version:
1666
+ - v20.0.0
1667
+ pr-url: https://github.com/nodejs/node/pull/41276
1668
+ description: The `close`, `highWatermark`, and `lowWatermark`
1669
+ options are supported now.
1664
1670
-->
1665
1671
1666
1672
* ` emitter ` {EventEmitter}
1667
1673
* ` eventName ` {string|symbol} The name of the event being listened for
1668
1674
* ` options ` {Object}
1669
1675
* ` signal ` {AbortSignal} Can be used to cancel awaiting events.
1676
+ * ` close ` - {string\[ ] } Can be used to set event names that will end
1677
+ the iteration.
1678
+ * ` highWatermark ` - {integer} ** Default:** ` Number.MAX_SAFE_INTEGER `
1679
+ Sets the ` highWaterMark ` used for the stream.
1680
+ * ` lowWatermark ` - {integer} ** Default:** ` 1 `
1681
+ Sets the ` lowWaterMark ` used for the stream.
1670
1682
* Returns: {AsyncIterator} that iterates ` eventName ` events emitted by the ` emitter `
1671
1683
1672
1684
``` mjs
You can’t perform that action at this time.
0 commit comments