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 9ead4ec

Browse filesBrowse files
ronagtargos
authored andcommitted
doc: note that stream error can close stream
PR-URL: #29082 Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 6b9e372 commit 9ead4ec
Copy full SHA for 9ead4ec

File tree

Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+4
-1
lines changed
Open diff view settings
Collapse file

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+4-1Lines changed: 4 additions & 1 deletion
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,9 @@ added: v0.9.4
277277
The `'error'` event is emitted if an error occurred while writing or piping
278278
data. The listener callback is passed a single `Error` argument when called.
279279

280-
The stream is not closed when the `'error'` event is emitted.
280+
The stream is not closed when the `'error'` event is emitted unless the
281+
[`autoDestroy`][writable-new] option was set to `true` when creating the
282+
stream.
281283

282284
##### Event: 'finish'
283285
<!-- YAML
@@ -2734,4 +2736,5 @@ contain multi-byte characters.
27342736
[stream-write]: #stream_writable_write_chunk_encoding_callback
27352737
[writable-_destroy]: #stream_writable_destroy_err_callback
27362738
[writable-destroy]: #stream_writable_destroy_error
2739+
[writable-new]: #stream_constructor_new_stream_writable_options
27372740
[zlib]: zlib.html

0 commit comments

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