Skip to content

Add Promise.zip #168

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

Merged
merged 1 commit into from
Oct 10, 2014
Merged

Add Promise.zip #168

merged 1 commit into from
Oct 10, 2014

Conversation

obrok
Copy link
Contributor

@obrok obrok commented Oct 9, 2014

As discussed in #80. The only thing I'm wondering about is if .zip and #zip should take *args or an array. I chose *args, because it looks better when you convert to it from the other - Promise.zip(*promises) as opposed to Promise.zip([promise1, promise2]) and looks very good for the simple case of promise1.zip(promise2) { |(v1, v2)| ... }.

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) when pulling 5dae1ad on obrok:promise-zip into 0c74b69 on ruby-concurrency:master.

jdantonio added a commit that referenced this pull request Oct 10, 2014
@jdantonio jdantonio merged commit cfd030f into ruby-concurrency:master Oct 10, 2014
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.

3 participants