Closed SudoPlz closed 4 years ago
If you need to force a crash, you have to Promise\queue()->add()
a function that throws the error.
If you call $promise->wait(true)
, your exception should be thrown. See https://github.com/guzzle/promises/blob/ac2529fc650684c5cd687e2b462d046cdbed556e/src/PromiseInterface.php#L81-L82
What's the problem here? Did you forget to actually resolve/wait on the promise?
ping @SudoPlz
It's been such a long time, I don't even remember, let's close this. Thanks for pinging me.
Hey there,
I've got the following code:
but the error is being caught.
What can I do to allow it to propagate up the error chain and crash the app?
Thank you