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 <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: Darshan Sen <[email protected]>
  • Loading branch information
ihiteshsharma authored and jasnell committed May 17, 2021
1 parent 417c31b commit 5b90748
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 @@ -5971,6 +5971,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 5b90748

Please sign in to comment.