Promise & Deferred objects in JavaScript Pt.1: Theory and Semantics.

added by JavaScript Kicks
9/26/2014 4:02:20 PM

98 Views

In the not too distant past the primary tool available to JavaScript programmers for handling asynchronous events was the callback. In other words, a function can be passed as an argument to another function to be executed when it is called. 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.


0 comments