From 44bd8c63dcd9e546960153788b42cd2c008ce5d7 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 | 9 +++- lib/internal/streams/end-of-stream.js | 32 ++++++++++- test/parallel/test-stream-finished.js | 77 +++++++++++++++++++++++++++ 3 files changed, 115 insertions(+), 3 deletions(-) diff --git a/doc/api/stream.md b/doc/api/stream.md index cb4085806bb6da..b498b2f67dcf14 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'`.