Skip to content

Better streams that support being returned asynchronously.#765

Closed
AaronAsAChimp wants to merge 1 commit intoAutomattic:masterfrom
AaronAsAChimp:better-streams
Closed

Better streams that support being returned asynchronously.#765
AaronAsAChimp wants to merge 1 commit intoAutomattic:masterfrom
AaronAsAChimp:better-streams

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.

3 participants