Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Just write callbacks to check for the promise using try and catch. Repeat this for every promise of the chain. Profit.
-
@iusearchbtw mixing promises and callbacks makes me feels naughty :D Anyways I took a different approach that led to more performant execution too.
This is something I'd like to wrap my head around one day though. -
@ananaszjoe This was meant to be taken ironically, I should have been more specific. I have really bad experiences with mixing callbacks and promises, thus I'd prefer anything.
-
Yep, async await is beautiful. I don't see how one can survive using the callback promise syntax.
Related Rants
My current rant: Recursive promise chains in JS. That's all.
rant
help
recursion
promise
js