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 da84a772cf Port to Amp
2016-08-18 11:04:48 -05:00

16 lines
365 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(\dirname(__DIR__)) . '/bin';
parent::__construct(new ChannelledProcess($dir . '/worker.php', $dir));
}
}