Skip to content

Instantly share code, notes, and snippets.

@zeroeth
Created October 6, 2015 17:08
Show Gist options
  • Select an option

  • Save zeroeth/57c4ab18959909fb5f67 to your computer and use it in GitHub Desktop.

Select an option

Save zeroeth/57c4ab18959909fb5f67 to your computer and use it in GitHub Desktop.
new Promise(callback_function).then(new Promise(callback_function2)).then(new Promise(callback_function3))
// Each callback gets passed two arguments which are callbacks. ex
var callback_function = function(resolve, reject)
{
do_a_bunch_of_work;
resolve(); // proceed to my promises then()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment