The Promise Ring

By January 9, 2013Fashion

One of the more powerful parts of Javascript is it’s asynchronous nature. For those unfamiliar asynchronous  events are those occurring independently of the main program flow. Asynchronous actions are actions executed in a non-blocking scheme, allowing the main program flow to continue processing.  In the context of Node.js this is  very powerful but can sometimes be confusing. While I have used async in the past I have recently been exposed to Q another tool for composing asynchronous promises in Javascript.

Install Q

Install with NPM: npm install q

var q = require(‘q’);


Leave a Reply