2 ms·
It appears you've changed the API though? Just chain the promises instead of nesting them https://gist.github.com/joshhunt/e3761594d10bb7025bcb https://gist.git
by madeofpalk 11y ago
It appears you've changed the API though? Just chain the promises instead of nesting them https://gist.github.com/joshhunt/e3761594d10bb7025bcb https://gist.github.com/joshhunt/e3761594d10bb7025bcb
- frank-weindel 11y agoThat's how I'd do it.
- inglor 11y agoChaining them is also perfectly viable (still one nesting level), as long as you're not dipicting a non-existing problem ("callback hell") it's all good. I used .call since OP used Q promises in the article - this works about as well with other libraries.