| 1 | <?php declare(strict_types=1); |
||
| 7 | final class Scheduler implements SchedulerInterface |
||
| 8 | { |
||
| 9 | /** @var LoopInterface */ |
||
| 10 | private $loop; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Scheduler constructor. |
||
| 14 | * @param LoopInterface $loop |
||
| 15 | */ |
||
| 16 | 4 | public function __construct(LoopInterface $loop) |
|
| 20 | |||
| 21 | 4 | public function schedule(callable $tick): void |
|
| 31 | } |
||
| 32 |