@@ -6,10 +6,10 @@ |
||
6 | 6 | |
7 | 7 | require __DIR__ . '/../vendor/autoload.php'; |
8 | 8 | |
9 | -Amp\Loop::run(function () { |
|
9 | +Amp\Loop::run(function() { |
|
10 | 10 | $dispatcher = Dispatcher::instance(); |
11 | 11 | $dispatcher |
12 | - ->register('endless', function (string $sign) { |
|
12 | + ->register('endless', function(string $sign) { |
|
13 | 13 | while (true) { |
14 | 14 | yield new Delayed(100); |
15 | 15 |
@@ -5,10 +5,10 @@ discard block |
||
5 | 5 | |
6 | 6 | require __DIR__ . '/../vendor/autoload.php'; |
7 | 7 | |
8 | -Amp\Loop::run(function () { |
|
8 | +Amp\Loop::run(function() { |
|
9 | 9 | $dispatcher = Dispatcher::instance(); |
10 | 10 | $dispatcher |
11 | - ->register('endless', function (string $sign) { |
|
11 | + ->register('endless', function(string $sign) { |
|
12 | 12 | while (true) { |
13 | 13 | yield new Delayed(100); |
14 | 14 | |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | try { |
21 | 21 | $task = $dispatcher->dispatch('endless', '.'); |
22 | 22 | |
23 | - Amp\Loop::delay(500, function () use ($task) { |
|
23 | + Amp\Loop::delay(500, function() use ($task) { |
|
24 | 24 | $task->cancel(); |
25 | 25 | }); |
26 | 26 |