Skip to content

Commit

Permalink
doc: add usage recommendation for writable._destroy
Browse files Browse the repository at this point in the history
PR-URL: #41040
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
  • Loading branch information
RafaelGSS authored and targos committed Jan 14, 2022
1 parent 90617b9 commit 29563ab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions doc/api/stream.md
Original file line number Diff line number Diff line change
Expand Up @@ -2689,6 +2689,8 @@ added: v8.0.0

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

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

Expand Down

0 comments on commit 29563ab

Please sign in to comment.