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 danielleadams committed Feb 1, 2022
1 parent e444b41 commit aa04a2c
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 @@ -2639,6 +2639,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 aa04a2c

Please sign in to comment.