From a44219d97980650a109b5b96de4c84ca98712e9a Mon Sep 17 00:00:00 2001 From: Hitesh Sharma Date: Sun, 9 May 2021 19:59:52 +0530 Subject: [PATCH] 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 Reviewed-By: Rich Trott Reviewed-By: Darshan Sen --- doc/api/fs.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/api/fs.md b/doc/api/fs.md index c31b14ce69cb7e..0d2121b935180c 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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])` + + +* `callback` {Function} + * `err` {Error} + +Closes `writeStream`. Optionally accepts a +callback that will be executed once the `writeStream` +is closed. + #### `writeStream.path`