summaryrefslogtreecommitdiff
path: root/tests/sleep.php
blob: e34a68341f8e07811ddf9816f8495a3ac7d61ddb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php

declare(strict_types=1);

use Spiral\Goridge\StreamRelay;
use Spiral\RoadRunner\Worker as RoadRunner;

require __DIR__ . "/vendor/autoload.php";

$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT));

while($rr->waitPayload()){
    sleep(3);
    $rr->send("");
}