1
0
mirror of https://github.com/danog/parallel.git synced 2024-12-04 10:38:30 +01:00
parallel/lib/Worker/WorkerProcess.php
2016-08-18 17:36:58 -05:00

16 lines
358 B
PHP

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