Open in app
Gajus Kuizinas
6.8K Followers
About

Sign in

6.8K Followers
About
Open in app

Nested.then(..) with multiple dependent Promises

How to escape Promise Hell
1.6K
26

Ronald Chen

Gajus Kuizinas

Gajus Kuizinas

Apr 29, 2016·1 min read

How would you reduce nesting in this example http://gajus.com/blog/8/using-mysql-in-node-js#reducing-nesting-using-async-functions?

Written by

Gajus Kuizinas

Software architect, startup adviser. Editor of https://medium.com/applaudience. Founder of https://go2cinema.com.

More from Gajus Kuizinas

Software architect, startup adviser. Editor of https://medium.com/applaudience. Founder of https://go2cinema.com.

More From Medium

Lessons learned scaling PostgreSQL database to 1.2bn records/ month

Gajus Kuizinas

Dynamically generating SQL queries using Node.js

Gajus Kuizinas in JavaScript In Plain English

Using HTTP proxy with Puppeteer

Gajus Kuizinas in The Startup

Traveling and working remotely from Japan. 20 oddities

Gajus Kuizinas

A declarative way to cache PostgreSQL queries using Node.js

Gajus Kuizinas in The Startup

Ensuring healthy Node.js program using watchdog timer

Gajus Kuizinas in Level Up Coding

Pre-loading cache

Gajus Kuizinas

Ultimate guide to concurrent logging in Node.js

Gajus Kuizinas in ITNEXT

About

Help

Legal

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store