mirror of
https://github.com/danog/parallel.git
synced 2024-12-02 17:52:14 +01:00
16 lines
385 B
PHP
16 lines
385 B
PHP
<?php declare(strict_types = 1);
|
|
|
|
namespace Amp\Concurrent\Worker;
|
|
|
|
use Amp\Concurrent\Process\ChannelledProcess;
|
|
|
|
/**
|
|
* A worker thread that executes task objects.
|
|
*/
|
|
class WorkerProcess extends AbstractWorker {
|
|
public function __construct() {
|
|
$dir = \dirname(__DIR__, 2) . '/bin';
|
|
parent::__construct(new ChannelledProcess($dir . '/worker.php', $dir));
|
|
}
|
|
}
|