diff --git a/examples/5-many-pools.php b/examples/5-many-pools.php index f94be91..7cef667 100644 --- a/examples/5-many-pools.php +++ b/examples/5-many-pools.php @@ -13,7 +13,7 @@ use function Amp\Promise\wait; for ($i = 0; $i < 30; $i++) { $pool = new DefaultPool(); - $promises = parallelMap(range(1, 50), function () { + $promises = parallelMap(\range(1, 50), function () { return 2; }, $pool);