Skip to content

Support async iteration#201

Open
alubbe wants to merge 1 commit into
ZJONSSON:masterfrom
alubbe:async-iteration
Open

Support async iteration#201
alubbe wants to merge 1 commit into
ZJONSSON:masterfrom
alubbe:async-iteration

Conversation

@alubbe

@alubbe alubbe commented Jun 8, 2020

Copy link
Copy Markdown

This PR adds fully functioning async iteration (see #191)

I would love to add a test case for this that goes through a real zip file, does some async things, and then breaks the loop. But, it would need to be done in a way that the test case only runs on node v12 and above. With the current setup of tap test/*.js --jobs=10 --coverage-report=html --no-browser I'm not sure how/where to do that - any suggestions?

@alubbe alubbe force-pushed the async-iteration branch from 90eca03 to 3acf17d Compare June 8, 2020 09:30
Comment thread lib/iterateStream.js
@@ -0,0 +1,35 @@
const {once} = require('events');

@alubbe alubbe Jun 8, 2020

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this file is the same helper as used (and tested) in the exceljs code base

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