-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
guzzle/promises #66
Comments
Using |
@WyriHaximus thanks for your reply I want to have uncaught exceptions $guzzlePromise = new \GuzzleHttp\Promise\Promise();
$guzzlePromise
->then(function ($value) {
throw new \Exception($value)
});
$guzzlePromise->resolve('test');//Third party library
$reactPromise = \React\Promise\resolve($guzzlePromise)
->done(); As I use I want to tell more details about my problem 1- How can I do this with |
You need to cast to a
|
@jsor thanks for your reply This exception caught by |
Sorry, i replied too fast :/ |
@jsor thank you |
I've proposed #68 which uses |
So |
Correct |
@jsor @WyriHaximus |
How can I convert guzzle/promises to reactphp/promise ?
As there is no
done()
method for guzzle/promises , I want to convert it to reactphp/promiseThe text was updated successfully, but these errors were encountered: