Promises are a new addition to Javascript (ES6).
We can do promise chaining by appending the .then()
handler to one another.
For example:
//Using MongoDB query as an example,
db.collection.findOne({id:userId})
.then()
.then()
.then()
.....
.catch(err)
So my question is how many .then()
block can you have in total in a single promise?
I am thinking that perhaps it depends only on the system processing power limit. But I also wonder if there is any programmatic
limitation imposed by Javascript.