ACIL FM
Dark
Refresh
Current DIR:
/opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/react/dns/src/Query
/
opt
cpanel
ea-wappspector
vendor
rector
rector
vendor
react
dns
src
Query
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
CachingExecutor.php
2.58 MB
chmod
View
DL
Edit
Rename
Delete
CancellationException.php
118 B
chmod
View
DL
Edit
Rename
Delete
CoopExecutor.php
3.38 MB
chmod
View
DL
Edit
Rename
Delete
ExecutorInterface.php
1.45 MB
chmod
View
DL
Edit
Rename
Delete
FallbackExecutor.php
1.71 MB
chmod
View
DL
Edit
Rename
Delete
HostsFileExecutor.php
3 MB
chmod
View
DL
Edit
Rename
Delete
Query.php
2.01 MB
chmod
View
DL
Edit
Rename
Delete
RetryExecutor.php
2.57 MB
chmod
View
DL
Edit
Rename
Delete
SelectiveTransportExecutor.php
3.01 MB
chmod
View
DL
Edit
Rename
Delete
TcpTransportExecutor.php
13.64 MB
chmod
View
DL
Edit
Rename
Delete
TimeoutException.php
106 B
chmod
View
DL
Edit
Rename
Delete
TimeoutExecutor.php
2.74 MB
chmod
View
DL
Edit
Rename
Delete
UdpTransportExecutor.php
8.33 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /opt/cpanel/ea-wappspector/vendor/rector/rector/vendor/react/dns/src/Query/TimeoutExecutor.php
<?php namespace RectorPrefix202411\React\Dns\Query; use RectorPrefix202411\React\EventLoop\Loop; use RectorPrefix202411\React\EventLoop\LoopInterface; use RectorPrefix202411\React\Promise\Promise; final class TimeoutExecutor implements ExecutorInterface { private $executor; private $loop; private $timeout; /** * @param ExecutorInterface $executor * @param float $timeout * @param ?LoopInterface $loop */ public function __construct(ExecutorInterface $executor, $timeout, $loop = null) { if ($loop !== null && !$loop instanceof LoopInterface) { // manual type check to support legacy PHP < 7.1 throw new \InvalidArgumentException('Argument #3 ($loop) expected null|React\\EventLoop\\LoopInterface'); } $this->executor = $executor; $this->loop = $loop ?: Loop::get(); $this->timeout = $timeout; } public function query(Query $query) { $promise = $this->executor->query($query); $loop = $this->loop; $time = $this->timeout; return new Promise(function ($resolve, $reject) use($loop, $time, $promise, $query) { $timer = null; $promise = $promise->then(function ($v) use(&$timer, $loop, $resolve) { if ($timer) { $loop->cancelTimer($timer); } $timer = \false; $resolve($v); }, function ($v) use(&$timer, $loop, $reject) { if ($timer) { $loop->cancelTimer($timer); } $timer = \false; $reject($v); }); // promise already resolved => no need to start timer if ($timer === \false) { return; } // start timeout timer which will cancel the pending promise $timer = $loop->addTimer($time, function () use($time, &$promise, $reject, $query) { $reject(new TimeoutException('DNS query for ' . $query->describe() . ' timed out')); // Cancel pending query to clean up any underlying resources and references. // Avoid garbage references in call stack by passing pending promise by reference. \assert(\method_exists($promise, 'cancel')); $promise->cancel(); $promise = null; }); }, function () use(&$promise) { // Cancelling this promise will cancel the pending query, thus triggering the rejection logic above. // Avoid garbage references in call stack by passing pending promise by reference. \assert(\method_exists($promise, 'cancel')); $promise->cancel(); $promise = null; }); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply