We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Doing something like the following should not be allowed:
get { HttpClient httpClient -> def respPromise = httpClient.get { it.url.set(new URI("http://badsite.gas")) } respPromise.onError { //... } respPromise.then { //... } }
We should error if you try to attach to the same promise twice.
The text was updated successfully, but these errors were encountered:
What is the correct way to add an error handler? The intuitive thing to do, in my opinion, is something like what we have in javascript:
returnaPromise().then(funcA, errorFunc)
or:
returnAPromise().then(funcA).fail(erroFunc).done(funcB)
I feel like I'm missing something.
Sorry, something went wrong.
Use promise.onError().then().
Ah, thanks. I was doing it the wrong way: promise.then().onError()
69c4f62
ldaley
No branches or pull requests
Doing something like the following should not be allowed:
We should error if you try to attach to the same promise twice.
The text was updated successfully, but these errors were encountered: