Lines Matching refs:this
45 $this->wrappedPromise = $promise;
46 $this->waitfn = $wait;
47 $this->cancelfn = $cancel;
55 if (!$this->isRealized) {
56 $this->addShadow();
57 if (!$this->isRealized && $this->waitfn) {
58 $this->invokeWait();
60 if (!$this->isRealized) {
61 $this->error = new RingException('Waiting did not resolve future');
65 if ($this->error) {
66 throw $this->error;
69 return $this->result;
77 return $this->wrappedPromise;
88 return $this->wrappedPromise->then($onFulfilled, $onRejected, $onProgress);
93 if (!$this->isRealized) {
94 $cancelfn = $this->cancelfn;
95 $this->waitfn = $this->cancelfn = null;
96 $this->isRealized = true;
97 $this->error = new CancelledFutureAccessException();
99 $cancelfn($this);
107 // calling this function might trigger the resolution immediately.
108 $this->wrappedPromise->then(
110 $this->isRealized = true;
111 $this->result = $value;
112 $this->waitfn = $this->cancelfn = null;
115 $this->isRealized = true;
116 $this->error = $error;
117 $this->waitfn = $this->cancelfn = null;
125 $wait = $this->waitfn;
126 $this->waitfn = null;
130 $this->error = $e;
131 $this->isRealized = true;