| Conditions | 1 |
| Paths | 1 |
| Total Lines | 7 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php |
||
| 33 | public function getMainLoop(callable $main, int $sleep_nano_seconds): Loop |
||
| 34 | { |
||
| 35 | return $this->loop_builder->addProcess(NanoSleepLoop::class, [$sleep_nano_seconds]) |
||
| 36 | ->addProcess(RetryOnExceptionLoop::class, [10, [MemoryReaderException::class]]) |
||
| 37 | ->addProcess(KeyboardCancelLoop::class, ['q']) |
||
| 38 | ->addProcess(CallableLoop::class, [$main]) |
||
| 39 | ->build(); |
||
| 40 | } |
||
| 42 |