| 1 | <?php |
||
| 8 | class Executor |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var Process[] |
||
| 12 | */ |
||
| 13 | protected $processes; |
||
| 14 | |||
| 15 | public function __construct() |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param JobInterface[] $jobs |
||
| 22 | */ |
||
| 23 | public function run(array $jobs) |
||
| 43 | |||
| 44 | /** |
||
| 45 | * Returns true if any of the processes are still running. |
||
| 46 | * |
||
| 47 | * @return bool |
||
| 48 | */ |
||
| 49 | public function isRunning(): bool |
||
| 59 | } |
||
| 60 |