mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
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:
1 parent
347b9f2304
commit
0100a3b026
1 file changed
+12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user