From e027154707a253e155ac51d8dac5cd542c89c932 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 Add AbortSignal support to stream.finished --- doc/api/stream.md | 6 +++ lib/internal/streams/end-of-stream.js | 23 +++++++- test/parallel/test-stream-finished.js | 77 +++++++++++++++++++++++++++ 3 files changed, 105 insertions(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index cb4085806bb6da..80fdbb89e33ecd 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'`.