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 Dec 22, 2021
1 parent 555e7f9 commit 5016181
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 @@ -2743,6 +2743,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 5016181

Please sign in to comment.