mirror of
https://github.com/nodejs/node.git
synced 2024-12-01 16:10:02 +01:00
doc: clarify async iterator leak
Clarifies that creating multiple async iterators from the same stream can lead to event listener leak. PR-URL: https://github.com/nodejs/node/pull/28997 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
This commit is contained in:
parent
f985a25ba7
commit
d7a4ace34b
@ -2502,6 +2502,9 @@ and async iterators are provided below.
|
||||
})();
|
||||
```
|
||||
|
||||
Async iterators register a permanent error handler on the stream to prevent any
|
||||
unhandled post-destroy errors.
|
||||
|
||||
#### Creating Readable Streams with Async Generators
|
||||
|
||||
We can construct a Node.js Readable Stream from an asynchronous generator
|
||||
|
Loading…
Reference in New Issue
Block a user