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 deferred when in a non async context #110

Closed
wants to merge 1 commit into from

Conversation

joelwurtz
Copy link
Member

@joelwurtz joelwurtz commented Sep 25, 2018

Q A
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets fixes #109
License MIT

Should fix #109

Do not have time to make a proper test ATM, if urgent create a ticket for the test, merge this and push a new version

For the explanation it's because fullfilled / rejected call directly the callback before returning a new one, which makes the deferred be resolved before we set the then callback (and so the new deferred will never be resolved / rejected)

@joelwurtz joelwurtz mentioned this pull request Sep 25, 2018
@mxr576
Copy link
Contributor

mxr576 commented Sep 25, 2018

FYI, it still did not solve the problem for us: https://travis-ci.org/mxr576/apigee-client-php/jobs/432968341

@joelwurtz
Copy link
Member Author

Are you sure that the patch is apply ? IMO this config requires an extra plugin for composer and i do not see him installed during the travis build

@mxr576
Copy link
Contributor

mxr576 commented Sep 25, 2018

Yes I am sure, search for "110.diff" here: https://api.travis-ci.org/v3/job/432968341/log.txt This is what I also checked first.

image

@Jean85
Copy link
Contributor

Jean85 commented Sep 26, 2018

I've also tested this patch locally, it doesn't fix the issue.

@joelwurtz
Copy link
Member Author

Closing this, since it's not relevant anymore and got no time to finish it

@joelwurtz joelwurtz closed this Jan 21, 2019
@joelwurtz joelwurtz deleted the joelwurtz-patch-1 branch January 21, 2019 22:55
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.

can only throw objects
3 participants