Skip to content

Commit

Permalink
Fixed example
Browse files Browse the repository at this point in the history
  • Loading branch information
andot committed Aug 8, 2016
1 parent 20118f1 commit a302f9f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion examples/src/client/TcpFDClientBenchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
for ($i = 0; $i < $m; $i++) {
$results[] = ($test->hello("$j-$i"));
}
(yield $results);
(yield Future\all($results));
}
$total = microtime(true) - $start;
$average = $total / $n / $m;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/client/TcpHDClientBenchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
for ($i = 0; $i < $m; $i++) {
$results[] = ($test->hello("$j-$i"));
}
(yield $results);
(yield Future\all($results));
}
$total = microtime(true) - $start;
$average = $total / $n / $m;
Expand Down
2 changes: 1 addition & 1 deletion examples/src/client/UnixClientBenchmark.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
for ($i = 0; $i < $m; $i++) {
$results[] = ($test->hello("$j-$i"));
}
(yield $results);
(yield Future\all($results));
}
$total = microtime(true) - $start;
$average = $total / $n / $m;
Expand Down

0 comments on commit a302f9f

Please sign in to comment.