File manager - Edit - /home/autoph/public_html/projects/aha-api/vendor/laravel/framework/src/Illuminate/Concurrency/ForkDriver.php
Back
<?php namespace Illuminate\Concurrency; use Closure; use Illuminate\Contracts\Concurrency\Driver; use Illuminate\Support\Arr; use Illuminate\Support\Defer\DeferredCallback; use Spatie\Fork\Fork; use function Illuminate\Support\defer; class ForkDriver implements Driver { /** * Run the given tasks concurrently and return an array containing the results. */ public function run(Closure|array $tasks): array { /** @phpstan-ignore class.notFound */ return Fork::new()->run(...Arr::wrap($tasks)); } /** * Start the given tasks in the background after the current task has finished. */ public function defer(Closure|array $tasks): DeferredCallback { return defer(fn () => $this->run($tasks)); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.01 |
proxy
|
phpinfo
|
Settings