diff options
Diffstat (limited to 'tests/delay.php')
-rw-r--r-- | tests/delay.php | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/tests/delay.php b/tests/delay.php deleted file mode 100644 index bfde2fc4..00000000 --- a/tests/delay.php +++ /dev/null @@ -1,18 +0,0 @@ -<?php -/** - * @var Goridge\RelayInterface $relay - */ - -use Spiral\Goridge; -use Spiral\RoadRunner; - -$rr = new RoadRunner\Worker($relay); - -while ($in = $rr->receive($ctx)) { - try { - usleep($in * 1000); - $rr->send(''); - } catch (\Throwable $e) { - $rr->error((string)$e); - } -}
\ No newline at end of file |