Closed jescalan closed 9 years ago
Hey @jenius! Yes, catch will wait for a promise that is returned from its handler. Double check that you're returning a promise. Also, if you can also post an example of your situation, we can have a look and figure out what is going on.
Ping ... have you had a chance to look at this again?
Afaict, this is working correctly. Please do reopen if you have a case where you feel it isn't.
Hey sorry just noticed this. I think I'm still having this issue but I'll check again and mention here if I have a reproduction case.
Recording the outcome here for anyone who lands on this: discussed with @jenius via IRC and catch
is working correctly. It does await promises returned from onRejected
handlers.
I have a situation in which I need to catch an error, and based on a condition, run another promise before continuing on. If I'm not mistaken,
promise.catch
does not resolve returned promises at the moment before continuing -- is it possible to add this functionality?