Skip to content

Instantly share code, notes, and snippets.

View Faline10's full-sized avatar

Fawn Bertram Faline10

  • Adobe, Google
  • San Francisco
View GitHub Profile
@Faline10
Faline10 / promises.js
Created March 27, 2017 18:47 — forked from danthareja/promises.js
A conjurer's guide to promises
/*
* 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');