Not only is this useful for long running calculations, but vital for (single or multiple) client-server calls. Promises are the backbone for modern applications consuming any type of data from an external source.
There are numerous benefits from promise-based programming, but often difficult to implement correctly. A large problem source seen during code reviews has been incorrectly chaining promises.
Find out more about correctly chaining multiple promises for proper data manipulation, implementing proper error handling, and avoiding unnecessary callbacks.
Read the full article here.