Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5ea9237

Browse filesBrowse files
ronagtargos
authored andcommitted
doc: clarify async iterator leak
Clarifies that creating multiple async iterators from the same stream can lead to event listener leak. PR-URL: #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>
1 parent 2e50088 commit 5ea9237
Copy full SHA for 5ea9237

File tree

Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+3
-0
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+3Lines changed: 3 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2502,6 +2502,9 @@ and async iterators are provided below.
25022502
})();
25032503
```
25042504

2505+
Async iterators register a permanent error handler on the stream to prevent any
2506+
unhandled post-destroy errors.
2507+
25052508
#### Creating Readable Streams with Async Generators
25062509

25072510
We can construct a Node.js Readable Stream from an asynchronous generator

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.