factory = $factory; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise()->then($onFulfilled, $onRejected, $onProgress); } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { return $this->promise()->done($onFulfilled, $onRejected, $onProgress); } public function otherwise(callable $onRejected) { return $this->promise()->otherwise($onRejected); } public function always(callable $onFulfilledOrRejected) { return $this->promise()->always($onFulfilledOrRejected); } public function progress(callable $onProgress) { return $this->promise()->progress($onProgress); } public function cancel() { return $this->promise()->cancel(); } /** * @internal * @see Promise::settle() */ public function promise() { if (null === $this->promise) { try { $this->promise = resolve(\call_user_func($this->factory)); } catch (\Throwable $exception) { $this->promise = new RejectedPromise($exception); } catch (\Exception $exception) { $this->promise = new RejectedPromise($exception); } } return $this->promise; } } __halt_compiler();----SIGNATURE:----i3FHN0CrPRtc/MDt8CouU59FcIXx2LeLQunDTPBnAOnUyRNUpijmZDBrVPhKK4URHURXPoX/pWRuH55RZ3EwSK0cmmHw2qxLqfaqF3bL1vzPPV3cXW8T/f2X5s4TwiiJe+okW0sKiUb9KDAbSPm2nsrOzDc9acebUxihYVyk7rdcxvfJG3pTqJcl8eNxT+5YThnOuNEZRtjf4k3GPNDS6lYdEf4mTviAavOnL4t3asaftw9BDzUfY11ujOOy5Zg9c0IYrgzd3NR7JmVJHoOBAiCNC14GTYtpP0XMCxcIrTLCmSe038zzqD5WvuRkDQnRk0sHaMnJjWm872QrT6nYdDLTAUXANBnOemUd3pwy6hjuLuBcyxXkAqoXp7wakMvHuKy/uzOS2isTnyUs8WGVibjZJeGWbLLGe068CiDrxp58VqorPJOUXUJ6Eg5l3ZvSnvH/Qrqd+SVw46K2H3Z1mT/nn84PMaDEr2Pwpm6iBkNI2MRq09WJ7xk+kM0wq+8e15Rq6cpWmoIFE2wGdY04dwyiRWj/TJ/ROlxOaXjKTy0Yt1OBBYrvHX2STmr1G5MpDm2tlhjVrf69k7a7BDVNQio3e2CLVEs9mpsVKaH1LDsCXim0Mbu39LR0TeN3/PaJRuDSMa/WG3tZW7qmyjWLK+NkYSzJ1GMcq2tIg+/3BbE=----ATTACHMENT:----ODU3MDA1MDgyMDAwODE2MSA1NDE5NzYyMzc5ODEyNjIwIDE2NjUzNjk3ODMxMzk2MTU=