Skip to content

Commit 29563ab

Browse files
RafaelGSStargos
authored andcommitted
doc: add usage recommendation for writable._destroy
PR-URL: #41040 Reviewed-By: Matteo Collina <[email protected]>
1 parent 90617b9 commit 29563ab

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/stream.md

+2
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)