From 3d3df0c00522e26c81a71cf0911ecbed55c31b4d Mon Sep 17 00:00:00 2001 From: Nitzan Uziely Date: Sat, 13 Feb 2021 14:05:04 +0200 Subject: [PATCH] stream: add AbortSignal support to finished PR-URL: https://github.com/nodejs/node/pull/37354 Reviewed-By: James M Snell Reviewed-By: Robert Nagy Reviewed-By: Matteo Collina Reviewed-By: Antoine du Hamel --- doc/api/stream.md | 7 +++ lib/internal/streams/end-of-stream.js | 35 +++++++++++- test/parallel/test-stream-finished.js | 77 +++++++++++++++++++++++++++ 3 files changed, 117 insertions(+), 2 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 363e80313a4a47..a850e2fff656ae 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1578,6 +1578,9 @@ further errors except from `_destroy()` may be emitted as `'error'`.