tuanpht / amphp-parallel-example

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PHP amphp/parallel example

Setup

composer install

You can use docker to test it with PHP 7.1, see docker-compose.yml

Run

time php src/command.php

The script parallel gets paginated data from a mock service.

The final results will have data from page 1 to last page in order.

And the maximum execution time will be the max sleep_seconds.

About


Languages

Language:PHP 90.6%Language:Dockerfile 9.4%