Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better streams that support being returned asynchronously. #765

Closed

Conversation

AaronAsAChimp
Copy link

Update createPNGStream and createJPEGStream to the new Streams API in Node >= 0.10. This will allow the streams to be returned asynchronously (e.g. Promises). Currently, the streams will read out all of the data before the promise is resolved.

@zbjornson
Copy link
Collaborator

Most of this is done in #740...

@AaronAsAChimp
Copy link
Author

Yes, sorry, didn't see it. Feel free to close :)

@zbjornson
Copy link
Collaborator

The test cases are good and I think those should be added at least! :) -- and it's a cool way to dedupe the core stream logic (although it exposes more private members)...

@LinusU
Copy link
Collaborator

LinusU commented May 3, 2017

Would be nice to land the test cases and possibly the deduped core stream logic :) would you mind rebasing?

@AaronAsAChimp
Copy link
Author

Sure, looking into it now.

@zbjornson
Copy link
Collaborator

Going to close for now since equivalent code changes are in. If you want to rebase sometime, happy to incorporate the tests!

@zbjornson zbjornson closed this Apr 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants