Javascript Promises Clarified

Javascript is designed for writing programs that respond to events such as mouse movements and incoming data. Because such events can occur rather randomly, it is essential to be able to interleave tasks. Javascript makes this easy enough when the tasks are short event handlers. When they are long running processes, things become more difficult. Dealing with that situation is what this short ebook is about.Javascript's primary support for interleaving subtasks is its event loop. Promises are an increasingly well known mechanism for dealing with Javascript's event loops. This ebook not only describes promises but also some utilities for working with them.Readers are expected to have some experience creating Javascript event handlers as well as to have a nodding acquaintance with HTTP, HTML,CSS, jQuery, and Node.js.

Author: J Adrian Zimmer

Learn more

Deals