Skip to content

use _destroy instead of destroy#7

Open
jacobheun wants to merge 1 commit intomafintosh:masterfrom
jacobheun:fix/destroy
Open

use _destroy instead of destroy#7
jacobheun wants to merge 1 commit intomafintosh:masterfrom
jacobheun:fix/destroy

Conversation

@jacobheun
Copy link
Copy Markdown

This uses _destroy instead of destroy. The 2.0.0 release doesn't work with async iterators because streams leverage an undocumented callback param in .destroy(err, cb) to handle promise resolution: https://github.com/nodejs/readable-stream/blob/v3.0.0/lib/internal/streams/async_iterator.js#L159. Switching to _destroy the emits should no longer be needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant