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 targos committed Sep 4, 2021
1 parent c3ae1cf commit a44219d
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 @@ -5905,6 +5905,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 a44219d

Please sign in to comment.