Lines Matching refs:null
16 public function __construct(callable $resolver, callable $canceller = null)
20 // Explicitly overwrite arguments with null values before invoking
24 $resolver = $canceller = null;
28 public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
30 if (null !== $this->result) {
34 if (null === $this->canceller) {
53 $parent = null;
58 public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
60 if (null !== $this->result) {
76 return $this->then(null, static function ($reason) use ($onRejected) {
100 return $this->then(null, null, $onProgress);
105 if (null === $this->canceller || null !== $this->result) {
110 $this->canceller = null;
115 private function resolver(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null)
142 private function reject($reason = null)
144 if (null !== $this->result) {
165 $this->canceller = null;
176 while ($promise instanceof self && null !== $promise->result) {
194 // Explicitly overwrite argument with null value. This ensure that this
197 $cb = null;
229 static function ($value = null) use (&$target) {
230 if ($target !== null) {
232 $target = null;
235 static function ($reason = null) use (&$target) {
236 if ($target !== null) {
238 $target = null;
241 static function ($update = null) use (&$progressHandlers) {
249 $target = null;
252 $target = null;