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

Fix race() to return a forever pending promise when called with an empty array #83

Merged
merged 2 commits into from
Jan 14, 2017

Conversation

jsor
Copy link
Member

@jsor jsor commented Jan 11, 2017

Fix race() to return a forever pending promise when called with an empty array.

Alternative for #81.
See #57 for the discussion.

Closes #57

@jsor jsor mentioned this pull request Jan 11, 2017
@jsor jsor added this to the v3.0 milestone Jan 11, 2017
@jsor
Copy link
Member Author

jsor commented Jan 13, 2017

Since this PR is approved by @WyriHaximus and @clue is undecided, i'm going to merge this one in the next days (and close #81) if there no any objections.

Copy link
Member

@clue clue left a comment

Choose a reason for hiding this comment

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

I'll keep my vote at +/-0, but I'm tempted to prefer this one because it ensures consistency with ES6 promises.

The changed behavior should be documented in the README (à la bluebird docs), otherwise LGTM 👍

@jsor
Copy link
Member Author

jsor commented Jan 13, 2017

@clue Good point, note added. 👍

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