diff options
author | Rafael Gonzaga <rafael.nunu@hotmail.com> | 2021-12-22 19:51:16 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-22 19:51:16 +0300 |
commit | 5016181697d63af9501ff3d6a719ba50237eb518 (patch) | |
tree | f079f0968b7baf5074058feab34c3f5ed7b4efe7 /doc/api/stream.md | |
parent | 555e7f9a7519414643d7bea8ee199aceccabfecd (diff) |
doc: add usage recommendation for writable._destroy
PR-URL: https://github.com/nodejs/node/pull/41040
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'doc/api/stream.md')
-rw-r--r-- | doc/api/stream.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/stream.md b/doc/api/stream.md index 891c1bdbb2a..81d9d660dc6 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -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)` |