| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 33 | public function run(): \Generator |
||
| 34 | { |
||
| 35 | /** |
||
| 36 | * @psalm-ignore-var |
||
| 37 | * @var TargetRegexMessage $target_regex |
||
| 38 | */ |
||
| 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 |