/var/www/vhosts/ihelp.ro/httpdocs/vendor/react/promise/src
NameSizeModeActions
Exception/-0755rm
Internal/-0755rm
Deferred.php9130644editdlrm
functions.php115170644editdlrm
functions_include.php970644editdlrm
Promise.php99550644editdlrm
PromiseInterface.php57210644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/react/promise/src/Deferred.php (913B)
*/ private $promise; /** @var callable */ private $resolveCallback; /** @var callable */ private $rejectCallback; public function __construct(callable $canceller = null) { $this->promise = new Promise(function ($resolve, $reject): void { $this->resolveCallback = $resolve; $this->rejectCallback = $reject; }, $canceller); } /** * @return PromiseInterface */ public function promise(): PromiseInterface { return $this->promise; } /** * @param T $value */ public function resolve($value): void { ($this->resolveCallback)($value); } public function reject(\Throwable $reason): void { ($this->rejectCallback)($reason); } }