doc: add documentation for fs.WriteStream.close()

PR-URL: https://github.com/nodejs/node/pull/38610
Fixes: https://github.com/nodejs/node/issues/38606
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
Hitesh Sharma authored and Michaël Zasso committed 2021-05-18 13:10:08 +02:00
1 parent 347b9f2304
commit 0100a3b026
1 file changed
+12
+12
View File
@@ -5948,6 +5948,18 @@ added: v0.4.7
The number of bytes written so far. Does not include data that is still queued
for writing.
#### `writeStream.close([callback])`
<!-- YAML
added: v0.9.4
-->
* `callback` {Function}
* `err` {Error}
Closes `writeStream`. Optionally accepts a
callback that will be executed once the `writeStream`
is closed.
#### `writeStream.path`
<!-- YAML
added: v0.1.93