mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
Make stream/iter async consumers observe abort signals while waiting for a pending async iterator read. This lets bytes(), text(), arrayBuffer(), and array() reject promptly with the abort reason instead of waiting for another batch. Move the shared abort-aware iterator wrapper to stream/iter utils so pull and consumers use the same helper. Signed-off-by: Kamat, Trivikram <16024985+trivikr@users.noreply.github.com> Assisted-by: openai:gpt-5.5 PR-URL: https://github.com/nodejs/node/pull/64066 Fixes: https://github.com/nodejs/node/issues/64065 Reviewed-By: James M Snell <jasnell@gmail.com>