1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-02 17:52:14 +01:00
parallel/lib/Worker/WorkerProcess.php
2016-08-23 16:47:40 -05:00

16 lines
377 B
PHP

<?php declare(strict_types = 1);
namespace Amp\Parallel\Worker;
use Amp\Parallel\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', $dir));
}
}