ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/app/NH-HR-test-old/vendor/guzzlehttp/promises/src
/
home
mhhtmff
app
NH-HR-test-old
vendor
guzzlehttp
promises
src
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
AggregateException.php
413 B
chmod
View
DL
Edit
Rename
Delete
CancellationException.php
209 B
chmod
View
DL
Edit
Rename
Delete
Coroutine.php
4.07 MB
chmod
View
DL
Edit
Rename
Delete
Create.php
1.96 MB
chmod
View
DL
Edit
Rename
Delete
Each.php
2.6 MB
chmod
View
DL
Edit
Rename
Delete
EachPromise.php
7.42 MB
chmod
View
DL
Edit
Rename
Delete
FulfilledPromise.php
2 MB
chmod
View
DL
Edit
Rename
Delete
Is.php
941 B
chmod
View
DL
Edit
Rename
Delete
Promise.php
8.75 MB
chmod
View
DL
Edit
Rename
Delete
PromiseInterface.php
2.76 MB
chmod
View
DL
Edit
Rename
Delete
PromisorInterface.php
249 B
chmod
View
DL
Edit
Rename
Delete
RejectedPromise.php
2.21 MB
chmod
View
DL
Edit
Rename
Delete
RejectionException.php
1.21 MB
chmod
View
DL
Edit
Rename
Delete
TaskQueue.php
1.97 MB
chmod
View
DL
Edit
Rename
Delete
TaskQueueInterface.php
450 B
chmod
View
DL
Edit
Rename
Delete
Utils.php
8.18 MB
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/app/NH-HR-test-old/vendor/guzzlehttp/promises/src/TaskQueue.php
<?php declare(strict_types=1); namespace GuzzleHttp\Promise; /** * A task queue that executes tasks in a FIFO order. * * This task queue class is used to settle promises asynchronously and * maintains a constant stack size. You can use the task queue asynchronously * by calling the `run()` function of the global task queue in an event loop. * * GuzzleHttp\Promise\Utils::queue()->run(); * * @final */ class TaskQueue implements TaskQueueInterface { private $enableShutdown = true; private $queue = []; public function __construct(bool $withShutdown = true) { if ($withShutdown) { register_shutdown_function(function (): void { if ($this->enableShutdown) { // Only run the tasks if an E_ERROR didn't occur. $err = error_get_last(); if (!$err || ($err['type'] ^ E_ERROR)) { $this->run(); } } }); } } public function isEmpty(): bool { return !$this->queue; } public function add(callable $task): void { $this->queue[] = $task; } public function run(): void { while ($task = array_shift($this->queue)) { /** @var callable $task */ $task(); } } /** * The task queue will be run and exhausted by default when the process * exits IFF the exit is not the result of a PHP E_ERROR error. * * You can disable running the automatic shutdown of the queue by calling * this function. If you disable the task queue shutdown process, then you * MUST either run the task queue (as a result of running your event loop * or manually using the run() method) or wait on each outstanding promise. * * Note: This shutdown will occur before any destructors are triggered. */ public function disableShutdown(): void { $this->enableShutdown = false; } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply