mirror of
https://github.com/danog/parallel-functions.git
synced 2024-11-26 20:34:49 +01:00
Fix example
This commit is contained in:
parent
b5f46e0eaf
commit
d57bfecbf5
@ -28,12 +28,12 @@ use function Amp\ParallelFunctions\parallelMap;
|
|||||||
use function Amp\Promise\wait;
|
use function Amp\Promise\wait;
|
||||||
|
|
||||||
$responses = wait(parallelMap([
|
$responses = wait(parallelMap([
|
||||||
'https://google.com/',
|
'https://google.com/',
|
||||||
'https://github.com/',
|
'https://github.com/',
|
||||||
'https://stackoverflow.com/',
|
'https://stackoverflow.com/',
|
||||||
], function ($url) {
|
], function ($url) {
|
||||||
return file_get_contents($url);
|
return file_get_contents($url);
|
||||||
})));
|
}));
|
||||||
```
|
```
|
||||||
|
|
||||||
Further examples can be found in the [`./examples`](examples) directory.
|
Further examples can be found in the [`./examples`](examples) directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user