Skip to content

Instantly share code, notes, and snippets.

Avatar

Fawn Bertram Faline10

View GitHub Profile
@Faline10
Faline10 / promises.js
Created Mar 27, 2017 — forked from danthareja/promises.js
A conjurer's guide to promises
View promises.js
/*
* A quick example of how to use Bluebird and Q to conjure your own promises
*
* Everything going on here is explained further in the following video:
* http://youtu.be/OU7WuVGSuZw?list=PLT-DLWOBKbB4dZ83I_7Ca-sUTvorckG-E
*
*/
// Import node modules
var Q = require('q');