diff options
Diffstat (limited to 'tests/sleep.php')
-rw-r--r-- | tests/sleep.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/sleep.php b/tests/sleep.php new file mode 100644 index 00000000..b3ea8235 --- /dev/null +++ b/tests/sleep.php @@ -0,0 +1,15 @@ +<?php + +declare(strict_types=1); + +use Spiral\Goridge\StreamRelay; +use Spiral\RoadRunner\Worker as RoadRunner; + +require dirname(__DIR__) . "/vendor_php/autoload.php"; + +$rr = new RoadRunner(new StreamRelay(\STDIN, \STDOUT)); + +while($rr->receive($ctx)){ + sleep(3); + $rr->send(""); +}
\ No newline at end of file |