Skip to content

Add promise support #258

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

Closed
wants to merge 1 commit into from
Closed

Add promise support #258

wants to merge 1 commit into from

Conversation

gero3
Copy link

@gero3 gero3 commented Jun 9, 2015

This adds promise support when no callback is given.

@gh0stonio
Copy link

+1

globalObject.Promise.hasOwnProperty("resolve") &&
globalObject.Promise.hasOwnProperty("reject") &&
globalObject.Promise.hasOwnProperty("all") &&
globalObject.Promise.hasOwnProperty("race") &&

Choose a reason for hiding this comment

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

Why are you testing for all these methods on Promise? You use exactly none of them!

Drop lines 23-30.

EDIT: Drop lines 25-30

@jamestalmage
Copy link

@mikedeboer see #262, I think it is the better solution.

@gero3
Copy link
Author

gero3 commented Jun 30, 2015

See #262 for a better implementation

@gero3 gero3 closed this Jun 30, 2015
@gr2m
Copy link
Contributor

gr2m commented Oct 25, 2017

Hey folks, we plan to drop support for the custom Promise option altogether. If that causes any trouble for you, could you please let me know at #622?

Thanks :)

@octokit octokit locked and limited conversation to collaborators Oct 25, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants