From 40c18e0c45cabb4a73577dad350861ead1142608 Mon Sep 17 00:00:00 2001 From: RafaelGSS Date: Tue, 30 Nov 2021 13:11:53 -0300 Subject: [PATCH] doc: add usage recommendation for writable._destroy --- doc/api/stream.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/stream.md b/doc/api/stream.md index 91fe70555d0e46..1bb32e9c474622 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -2675,6 +2675,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)`