From 5b9074813fa8930d4abcd6e0533647d20d9e3145 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 4f88ce44027026..d63f0d1a64417a 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -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])` + + +* `callback` {Function} + * `err` {Error} + +Closes `writeStream`. Optionally accepts a +callback that will be executed once the `writeStream` +is closed. + #### `writeStream.path`