Skip to content

Commit 6bc006f

Browse files
y-hsgwacidiney
authored andcommitted
doc: add signal to filehandle.writeFile() options
PR-URL: nodejs#56804 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Harshitha K P <harshitha014@gmail.com>
1 parent da898d8 commit 6bc006f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

doc/api/fs.md

+1
Original file line numberDiff line numberDiff line change
@@ -805,6 +805,7 @@ changes:
805805
* `options` {Object|string}
806806
* `encoding` {string|null} The expected character encoding when `data` is a
807807
string. **Default:** `'utf8'`
808+
* `signal` {AbortSignal|undefined} allows aborting an in-progress writeFile. **Default:** `undefined`
808809
* Returns: {Promise}
809810
810811
Asynchronously writes data to a file, replacing the file if it already exists.

0 commit comments

Comments
 (0)