Conditions | 3 |
Paths | 1 |
Total Lines | 6 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
24 | public function __construct(Promised $connected, Nsqd $nsqd, Consuming $consuming) |
||
25 | { |
||
26 | go(static function () use ($connected, $nsqd, $consuming) { |
||
27 | if (yield $connected) { |
||
28 | if (yield $nsqd->sub($consuming->topic(), $consuming->channel())) { |
||
29 | $nsqd->rdy($consuming->concurrency()); |
||
30 | } |
||
35 |