Skip to content

Commit 13da84a

Browse files
committed
fix count error
1 parent 53822f3 commit 13da84a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MultiTask.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,10 +185,10 @@ public function yieldEachOne(?float $timeout = null): \Generator
185185
$count = \count($this->result_map);
186186
$outside_time_cost = 0;
187187
foreach ($this->result_map as $k => $v) {
188-
--$count;
189188
if (0 === $count) {
190189
break;
191190
}
191+
--$count;
192192
$yield_time = microtime(true);
193193
yield $k => $v;
194194
$outside_time_cost += microtime(true) - $yield_time;

0 commit comments

Comments
 (0)