There's nothing inherently wrong with callbacks, but depending on which environment we are programming in there are a number of options available for managing asynchronous events. In this post my goal is to examine one set of available tools: promise objects and deferred objects. In part I, we will cover theory and semantics and in part 2 we will look at the use.
Via @cwebbdesign
Your new post is loading...
An in-depth look at the semantics of promises in JavaScript and a comparison of the performance of different implementations.