PHP Classes

File: tests/delay.php

Recommend this page to a friend!
  Classes of Wolfy-J   roadrunner   tests/delay.php   Download  
File: tests/delay.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: 5 years ago
Size: 300 bytes


Class file image Download
 * @var Goridge\RelayInterface $relay

use Spiral\Goridge;

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

while (
$in = $rr->receive($ctx)) {
    try {
usleep($in * 1000);
    } catch (\
Throwable $e) {