Linux cesa-www-main 6.1.0-49-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
Apache/2.4.68 (Debian)
Server IP : 10.218.0.2 & Your IP : 216.73.216.28
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
React /
Promise /
Delete
Unzip
Name
Size
Permission
Date
Action
Exception
[ DIR ]
drwxr-xr-x
2025-06-05 11:22
CancellablePromiseInterface.php
438
B
-rw-r--r--
2022-02-11 10:27
CancellationQueue.php
1.11
KB
-rw-r--r--
2022-02-11 10:27
Deferred.php
1.43
KB
-rw-r--r--
2022-02-11 10:27
ExtendedPromiseInterface.php
3.37
KB
-rw-r--r--
2022-02-11 10:27
FulfilledPromise.php
1.84
KB
-rw-r--r--
2022-02-11 10:27
LazyPromise.php
1.7
KB
-rw-r--r--
2022-02-11 10:27
Promise.php
8.64
KB
-rw-r--r--
2022-02-11 10:27
PromiseInterface.php
1.74
KB
-rw-r--r--
2022-02-11 10:27
PromisorInterface.php
195
B
-rw-r--r--
2022-02-11 10:27
RejectedPromise.php
2.16
KB
-rw-r--r--
2022-02-11 10:27
UnhandledRejectionException.php
613
B
-rw-r--r--
2022-02-11 10:27
autoload.php
1.49
KB
-rw-r--r--
2022-05-27 13:30
functions.php
13.84
KB
-rw-r--r--
2022-02-11 10:27
functions_include.php
97
B
-rw-r--r--
2022-02-11 10:27
Save
Rename
<?php namespace React\Promise; /** * @deprecated 2.8.0 External usage of RejectedPromise is deprecated, use `reject()` instead. */ class RejectedPromise implements ExtendedPromiseInterface, CancellablePromiseInterface { private $reason; public function __construct($reason = null) { if ($reason instanceof PromiseInterface) { throw new \InvalidArgumentException('You cannot create React\Promise\RejectedPromise with a promise. Use React\Promise\reject($promiseOrValue) instead.'); } $this->reason = $reason; } public function then(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onRejected) { return $this; } try { return resolve($onRejected($this->reason)); } catch (\Throwable $exception) { return new RejectedPromise($exception); } catch (\Exception $exception) { return new RejectedPromise($exception); } } public function done(callable $onFulfilled = null, callable $onRejected = null, callable $onProgress = null) { if (null === $onRejected) { throw UnhandledRejectionException::resolve($this->reason); } $result = $onRejected($this->reason); if ($result instanceof self) { throw UnhandledRejectionException::resolve($result->reason); } if ($result instanceof ExtendedPromiseInterface) { $result->done(); } } public function otherwise(callable $onRejected) { if (!_checkTypehint($onRejected, $this->reason)) { return $this; } return $this->then(null, $onRejected); } public function always(callable $onFulfilledOrRejected) { return $this->then(null, function ($reason) use ($onFulfilledOrRejected) { return resolve($onFulfilledOrRejected())->then(function () use ($reason) { return new RejectedPromise($reason); }); }); } public function progress(callable $onProgress) { return $this; } public function cancel() { } }