Skip to content

Commit

Permalink
doc: add documentation for fs.WriteStream.close()
Browse files Browse the repository at this point in the history
PR-URL: #38610
Fixes: #38606
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
  • Loading branch information
ihiteshsharma authored and targos committed May 18, 2021
1 parent 347b9f2 commit 0100a3b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions doc/api/fs.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0100a3b

Please sign in to comment.