Lines Matching refs:promise
11 private $promise;
20 return $this->promise()->then($onFulfilled, $onRejected, $onProgress);
25 return $this->promise()->done($onFulfilled, $onRejected, $onProgress);
30 return $this->promise()->otherwise($onRejected);
35 return $this->promise()->always($onFulfilledOrRejected);
40 return $this->promise()->progress($onProgress);
45 return $this->promise()->cancel();
52 public function promise()
54 if (null === $this->promise) {
56 $this->promise = resolve(\call_user_func($this->factory));
58 $this->promise = new RejectedPromise($exception);
60 $this->promise = new RejectedPromise($exception);
64 return $this->promise;