Skip to content

Instantly share code, notes, and snippets.

@codefriar
Created January 31, 2017 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save codefriar/cb936d886615fd21e31c657cc15f217a to your computer and use it in GitHub Desktop.
Save codefriar/cb936d886615fd21e31c657cc15f217a to your computer and use it in GitHub Desktop.
new Promise(new Demo_PromiseStep())
.then(new Demo_PromiseStep_Two())
// Add as many .then(new someClass()) calls as you need
.error(new Demo_PromiseError())
.done(new Demo_PromiseDone())
.execute(param);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment