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 2c8255ba..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->waitPayload()) { - try { - usleep($in->body * 1000); - $rr->respond(new RoadRunner\Payload('')); - } catch (\Throwable $e) { - $rr->error((string)$e); - } -} |