Lines Matching refs:deferred
89 var deferred = %_CallFunction(constructor, PromiseDeferred);
91 %_CallFunction(x, deferred.resolve, deferred.reject, then);
93 deferred.reject(r);
95 return deferred.promise;
101 function PromiseHandle(value, handler, deferred) { argument
103 %DebugPushPromise(deferred.promise);
105 if (result === deferred.promise)
108 %_CallFunction(result, deferred.resolve, deferred.reject, PromiseChain);
110 deferred.resolve(result);
112 try { deferred.reject(exception); } catch (e) { }
216 var deferred = %_CallFunction(this.constructor, PromiseDeferred);
221 GET_PRIVATE(this, promiseOnResolve).push(onResolve, deferred);
222 GET_PRIVATE(this, promiseOnReject).push(onReject, deferred);
226 [onResolve, deferred],
231 [onReject, deferred],
236 %DebugPromiseEvent({ promise: deferred.promise, parentPromise: this });
238 return deferred.promise;
274 var deferred = %_CallFunction(this, PromiseDeferred);
277 deferred.reject(MakeTypeError('invalid_argument'));
278 return deferred.promise;
283 deferred.resolve(resolutions);
293 if (--count === 0) deferred.resolve(resolutions);
296 function(r) { deferred.reject(r) }
301 deferred.reject(e)
303 return deferred.promise;
307 var deferred = %_CallFunction(this, PromiseDeferred);
309 deferred.reject(MakeTypeError('invalid_argument'));
310 return deferred.promise;
315 function(x) { deferred.resolve(x) },
316 function(r) { deferred.reject(r) }
320 deferred.reject(e)
322 return deferred.promise;