tech/webdev magazine

December 5, 2015

How do Promises Work?

Saturday, December 05, 2015 Teklinks

Most implementations of JavaScript happen to be single-threaded, and given the language’s semantics, people tend to use callbacks to direct concurrent processes. While there isn’t anything particularly wrong with using Continuation-Passing Style in JavaScript, in practice it’s very easy for them to make the code harder to read, and more procedural than it should be.

Full article