![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/mcoil.corals.io/vendor/laravel/framework/src/Illuminate/Process/ |
<?php namespace Illuminate\Process; use Countable; class InvokedProcessPool implements Countable { /** * The array of invoked processes. * * @var array */ protected $invokedProcesses; /** * Create a new invoked process pool. * * @param array $invokedProcesses * @return void */ public function __construct(array $invokedProcesses) { $this->invokedProcesses = $invokedProcesses; } /** * Send a signal to each running process in the pool, returning the processes that were signalled. * * @param int $signal * @return \Illuminate\Support\Collection */ public function signal(int $signal) { return $this->running()->each->signal($signal); } /** * Get the processes in the pool that are still currently running. * * @return \Illuminate\Support\Collection */ public function running() { return collect($this->invokedProcesses)->filter->running()->values(); } /** * Wait for the processes to finish. * * @return \Illuminate\Process\ProcessPoolResults */ public function wait() { return new ProcessPoolResults(collect($this->invokedProcesses)->map->wait()->all()); } /** * Get the total number of processes. * * @return int */ public function count(): int { return count($this->invokedProcesses); } }