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-12-29 19:16:04 -06:00

16 lines
350 B
PHP

<?php
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));
}
}