PHP Classes

File: tests/error.php

Recommend this page to a friend!
  Classes of Wolfy-J   roadrunner   tests/error.php   Download  
File: tests/error.php
Role: Example script
Content type: text/plain
Description: Example script
Class: roadrunner
Run multiple tasks of PHP in parallel using Golang
Author: By
Last change:
Date: 6 years ago
Size: 200 bytes
 

Contents

Class file image Download
<?php
/**
 * @var Goridge\RelayInterface $relay
 */

use Spiral\Goridge;
use
Spiral\RoadRunner;

$rr = new RoadRunner\Worker($relay);

while (
$in = $rr->receive($ctx)) {
   
$rr->error((string)$in);
}