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 29563ab

Browse filesBrowse files
RafaelGSStargos
authored andcommitted
doc: add usage recommendation for writable._destroy
PR-URL: #41040 Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
1 parent 90617b9 commit 29563ab
Copy full SHA for 29563ab

File tree

Expand file treeCollapse file tree

1 file changed

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

1 file changed

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

‎doc/api/stream.md‎

Copy file name to clipboardExpand all lines: doc/api/stream.md
+2Lines changed: 2 additions & 0 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2689,6 +2689,8 @@ added: v8.0.0
26892689

26902690
The `_destroy()` method is called by [`writable.destroy()`][writable-destroy].
26912691
It can be overridden by child classes but it **must not** be called directly.
2692+
Furthermore, the `callback` should not be mixed with async/await
2693+
once it is executed when a promise is resolved.
26922694

26932695
#### `writable._final(callback)`
26942696

0 commit comments

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