-
Notifications
You must be signed in to change notification settings - Fork 117
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
Async iteration #178
Comments
Hey @alubbe - really appreciate it. The code snippet above was unfortunately necessary to keep the backwards compatibility with I agree it would be very convenient to force the stream mode so you can apply async iterators directly. Perhaps we should name the config more explicitly, i.e. Would you mind doing a quick PR? |
I could definitely do that - two quick questions:
|
For the actual test itself, you can copy any of the tests in the
|
Done: #180 |
closed with #180 |
At exceljs, we're currently exploring using async iteration as the interface with
unzipper
(exceljs/exceljs#1135). By default,unzip.Parse
only emits the 'entry' event, so the following does not workI've found this in the code base, which allows me to 'enable' the normal stream api (via
.push()
)By creating a
PassThrough
, the above condition turns true and everything works:The
PassThrough
stream seems rather wasteful, so my question is - have you thought about async iteration in the design of your current implementation? One idea I had is to add an option during the instantiation, likeunzip.Parse({pipeable: true});
and to extend the above check to this:What do you think?
The text was updated successfully, but these errors were encountered: