Ejemplo n.º 1
0
 public function __construct()
 {
     parent::__construct(new Thread(function () {
         $runner = new TaskRunner($this, new Environment());
         yield $runner->run();
     }));
 }
Ejemplo n.º 2
0
 public function __construct()
 {
     $dir = dirname(dirname(__DIR__)) . '/bin';
     parent::__construct(new ChannelledProcess($dir . '/worker.php', $dir));
 }