Файловый менеджер - Редактировать - /home/kckglobal/public_html/portal/vendor/amphp/parallel/lib/Context/DefaultContextFactory.php
Назад
<?php namespace Amp\Parallel\Context; use Amp\Promise; class DefaultContextFactory implements ContextFactory { public function create($script): Context { /** * Creates a thread if ext-parallel is installed, otherwise creates a child process. * * @inheritdoc */ if (Parallel::isSupported()) { return new Parallel($script); } return new Process($script); } /** * Creates and starts a thread if ext-parallel is installed, otherwise creates a child process. * * @inheritdoc */ public function run($script): Promise { if (Parallel::isSupported()) { return Parallel::run($script); } return Process::run($script); } }
| ver. 1.4 |
Github
|
.
| PHP 8.2.28 | Генерация страницы: 0 |
proxy
|
phpinfo
|
Настройка