Go to file
2022-02-02 23:04:43 +01:00
docs Update shared documentation files 2020-08-30 21:23:43 +02:00
examples Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
src Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
test Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
.editorconfig Add php-cs-fixer and fix code style 2017-12-13 23:48:03 +01:00
.gitattributes Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
.gitignore Remove Gemfile.lock 2020-04-01 20:16:50 +02:00
.gitmodules Add docs 2017-12-14 00:30:25 +01:00
.php-cs-fixer.dist.php Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
.travis.yml Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
composer.json Update to php-cs-fixer v3 (#30) 2022-02-02 23:04:43 +01:00
LICENSE Initial commit 2017-12-13 22:58:26 +01:00
phpunit.xml.dist Update to PHPUnit 9 (#31) 2022-02-01 13:33:52 +01:00
README.md Fix example 2017-12-16 17:46:04 +01:00

parallel-functions

Build Status License

Installation

This package can be installed as a Composer dependency.

composer require amphp/parallel-functions

Requirements

  • PHP 7.0+

Documentation

Documentation can be found on amphp.org as well as in the ./docs directory.

Example

<?php

use function Amp\ParallelFunctions\parallelMap;
use function Amp\Promise\wait;

$responses = wait(parallelMap([
    'https://google.com/',
    'https://github.com/',
    'https://stackoverflow.com/',
], function ($url) {
    return file_get_contents($url);
}));

Further examples can be found in the ./examples directory.

Versioning

amphp/parallel-functions follows the semver semantic versioning specification like all other amphp packages.

Security

If you discover any security related issues, please email me@kelunik.com instead of using the issue tracker.

License

The MIT License (MIT). Please see LICENSE for more information.