Skip to content

Commit 0100a3b

Browse files
ihiteshsharmatargos
authored andcommitted
doc: add documentation for fs.WriteStream.close()
PR-URL: #38610 Fixes: #38606 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Darshan Sen <[email protected]>
1 parent 347b9f2 commit 0100a3b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

doc/api/fs.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5948,6 +5948,18 @@ added: v0.4.7
59485948
The number of bytes written so far. Does not include data that is still queued
59495949
for writing.
59505950
5951+
#### `writeStream.close([callback])`
5952+
<!-- YAML
5953+
added: v0.9.4
5954+
-->
5955+
5956+
* `callback` {Function}
5957+
* `err` {Error}
5958+
5959+
Closes `writeStream`. Optionally accepts a
5960+
callback that will be executed once the `writeStream`
5961+
is closed.
5962+
59515963
#### `writeStream.path`
59525964
<!-- YAML
59535965
added: v0.1.93

0 commit comments

Comments
 (0)