1
0
mirror of https://github.com/danog/parallel.git synced 2025-01-23 06:21:12 +01:00
parallel/lib/Worker/WorkerProcess.php
Aaron Piotrowski b924fc2b6e Code cleanup
2016-08-22 18:25:19 -05:00

16 lines
381 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', $dir));
}
}