DEV Community

Discussion on: What Is Concurrency In Node JS?

Collapse
 
diek profile image
diek

Nice post, i just want to say one thing.

In your promise example, you are nesting readPromise() in a callbackhell structure again, even if there is less lines of code.

Maybe you don't know, and that's the reason i write this, to share knowledge, if inside then() block you return a promise again, you can append another then to the chain.

Collapse
 
neutrino2211 profile image
Mainasara Al-amin Tsowa

Thanks!!, didn't notice