Small detail everywhere.
- yes you can resolve with an object with property function
then()
(also known asthenable
), but some engine will not allow you chain thethen()
call if you resolve your promise in that way.
solution:
a. use Promise.all()
to queue your callbacks;