mirror of
https://github.com/danog/parallel-functions.git
synced 2024-11-26 12:24:52 +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;
|
||||
|
||||
$responses = wait(parallelMap([
|
||||
'https://google.com/',
|
||||
'https://github.com/',
|
||||
'https://stackoverflow.com/',
|
||||
'https://google.com/',
|
||||
'https://github.com/',
|
||||
'https://stackoverflow.com/',
|
||||
], function ($url) {
|
||||
return file_get_contents($url);
|
||||
})));
|
||||
}));
|
||||
```
|
||||
|
||||
Further examples can be found in the [`./examples`](examples) directory.
|
||||
|
Loading…
Reference in New Issue
Block a user