From caa5a1baf54f07f41f55f183bf5ef7e92adb3c8e 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 | 83 +++++++++++++++++++++++++++ 3 files changed, 111 insertions(+), 1 deletion(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index 1d6b811c655fd5..dff8948d2e231f 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'`.