Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
createPromise(props) {
let promise = Promise.create(props);
let index = this.get('all.length');
this.get('all').pushObject(promise);
this.get('promiseIndex')[promise.get('guid')] = index;
return promise;
},