stream: update broadcast to retain buffered data with zero consumers · nodejs/node@3134ca6 · GitHub
Skip to content

Commit 3134ca6

Browse files
jasnelladuh95
authored andcommitted
stream: update broadcast to retain buffered data with zero consumers
While the Broadcast is still open, maintain buffered data when consumer count reaches zero Signed-off-by: James M Snell <jasnell@gmail.com> Assisted-by: Opencode PR-URL: #66028 Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com>
1 parent 02c2302 commit 3134ca6

2 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎lib/internal/streams/iter/broadcast.js‎

Lines changed: 2 additions & 0 deletions

‎test/parallel/test-stream-iter-broadcast-basic.js‎

Lines changed: 13 additions & 0 deletions

0 commit comments

Comments
 (0)