From ccf9f0e62eb6076fa7914ba23b69ba8e4bcf911f Mon Sep 17 00:00:00 2001 From: Benjamin Gruenbaum Date: Fri, 6 Nov 2020 13:44:40 +0200 Subject: [PATCH] fs: support abortsignal in writeFile PR-URL: https://github.com/nodejs/node/pull/35993 Reviewed-By: Antoine du Hamel Reviewed-By: Matteo Collina --- doc/api/fs.md | 61 ++++++++++++++++++++- lib/fs.js | 26 +++++++-- lib/internal/fs/promises.js | 10 +++- test/parallel/test-fs-promises-writefile.js | 11 ++++ test/parallel/test-fs-write-file.js | 29 ++++++++++ 5 files changed, 130 insertions(+), 7 deletions(-) diff --git a/doc/api/fs.md b/doc/api/fs.md index d5e2a2dfedc5cd..713ba1bf26bbee 100644 --- a/doc/api/fs.md +++ b/doc/api/fs.md @@ -4385,6 +4385,10 @@ details.