| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function watching(string $service, Chan $notify) : void |
||
| 34 | { |
||
| 35 | $ig = function () use ($service) { |
||
| 36 | return $this->endpointsLister($service); |
||
| 37 | }; |
||
| 38 | |||
| 39 | $do = function (AbstractEndpointsLister $lister) use ($notify) { |
||
| 40 | yield $notify->send($this->routing(yield $lister->result())); |
||
| 41 | }; |
||
| 42 | |||
| 43 | $this->nwProcess($notify->closed(), $ig, $do, 'Service watcher interrupted', ['svc' => $service]); |
||
| 44 | } |
||
| 62 |