Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var promiseRemoteData = new Promise(function(resolve,reject){
// 1. Perform ASYNC operation
// 2. On completion of remote operation call
// - resolve to notify success (pass any values that is required)
// - reject to notify error condition
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment