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

added PromiseSequence that waits asynchronously for each Promise item #111

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

FrozenCow
Copy link
Contributor

As described in the previous issue, this will allow people to create a Sequence of promises and let Lazy wait for each of them to be resolved. This allows functionality like mapping a sequence of URLs to a sequence of HTML-fetching-promises and, with mapThen, resolve those promises to a sequence of HTML.

@FrozenCow
Copy link
Contributor Author

It might be that I've overlooked the obvious and didn't know this was already possible with the existing functions in Lazy.js. If so, let me know how to lazily wait for a sequence of promises.

Also, please check whether you agree with the changes made to altered async_sequence_spec. I wasn't too sure how to solve this cleanly and would like feedback on this.

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