| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 36 | public function run(): \Generator |
||
| 37 | { |
||
| 38 | /** @var TargetRegexMessage $target_regex */ |
||
| 39 | $target_regex = yield $this->protocol->receiveTargetRegex(); |
||
| 40 | |||
| 41 | while (1) { |
||
| 42 | yield $this->protocol->sendUpdateTargetProcess( |
||
| 43 | new UpdateTargetProcessMessage( |
||
| 44 | new TargetProcessList( |
||
| 45 | ...$this->process_searcher->searchByRegex($target_regex->regex) |
||
| 46 | ) |
||
| 47 | ) |
||
| 48 | ); |
||
| 49 | sleep(1); |
||
| 50 | } |
||
| 53 |