Lines Matching refs:promise
182 backpressurePromise.promise, () => {
196 return closed.promise;
250 // a promise context, and if there are any errors
252 // rejection. Let's just escape the promise and
312 // a promise context, and if there are any errors
314 // rejection. Let's just escape the promise and
344 // a promise context, and if there are any errors
346 // rejection. Let's just escape the promise and
529 // a promise context, and if there are any errors
531 // rejection. Let's just escape the promise and
676 // a promise context, and if there are any errors
678 // rejection. Let's just escape the promise and
738 // a promise context, and if there are any errors
740 // rejection. Let's just escape the promise and
773 // a promise context, and if there are any errors
775 // rejection. Let's just escape the promise and
845 function createWriteWrap(controller, promise) {
853 req.promise = promise;
860 this.promise.reject(error);
864 this.promise.resolve();
868 const promise = createDeferredPromise();
872 req = createWriteWrap(controller, promise);
878 promise.reject(error);
882 promise.reject(errnoException(ret, 'write', req));
884 promise.resolve();
886 return promise.promise;
901 const promise = createDeferredPromise();
903 req.oncomplete = () => promise.resolve();
906 promise.resolve();
907 return promise.promise;
968 const promise = createDeferredPromise();
972 promise.reject(error);
973 return promise.promise;
976 req.oncomplete = () => promise.resolve();
979 promise.resolve();
980 return promise.promise;