I need to execute the go()
method when the promise is fulfilled, even if there is an error. (I am talking to backend API, and I need to do some UI work when I have the server response, even if is a 404).
Now I do this way:
Try.method().then(()=>{
go();
}).catch({
go();
})
There is a better way to avoid repeating the method invocation?