|
1 |
| -# reactphp-parallel |
| 1 | +# reactphp-parallel-contracts |
2 | 2 |
|
3 |
| -[](https://travis-ci.com/WyriHaximus/reactphp-parallel) |
4 |
| -[](https://packagist.org/packages/WyriHaximus/react-parallel) |
5 |
| -[](https://packagist.org/packages/WyriHaximus/react-parallel) |
6 |
| -[](https://packagist.org/packages/wyrihaximus/react-parallel) |
| 3 | +[](https://travis-ci.com/WyriHaximus/reactphp-parallel-contracts) |
| 4 | +[](https://packagist.org/packages/WyriHaximus/react-parallel-contracts) |
| 5 | +[](https://packagist.org/packages/WyriHaximus/react-parallel-contracts) |
| 6 | +[](https://packagist.org/packages/wyrihaximus/react-parallel-contracts) |
7 | 7 |
|
8 |
| -ReactPHP bindings around ext-parallel |
| 8 | +Interfaces for ReactPHP ext-parallel related packages |
9 | 9 |
|
10 | 10 | ## Install ##
|
11 | 11 |
|
12 | 12 | To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.
|
13 | 13 |
|
14 | 14 | ```
|
15 |
| -composer require wyrihaximus/react-parallel |
| 15 | +composer require wyrihaximus/react-parallel-contracts |
16 | 16 | ```
|
17 | 17 |
|
| 18 | +## Pools |
| 19 | + |
| 20 | +## Low level pools |
| 21 | + |
| 22 | +Low level pools only deal with executing closures on the Runtimes (threads) that make out the pools. And as such there |
| 23 | +is only one low level pool and that is `Infinite`, which will, as the name suggest, scale infinitely. While you can use |
| 24 | +such pools directly these are intended to be used by high level pools which have more control over what and how many |
| 25 | +things you run on these threads. |
| 26 | + |
| 27 | +Low level pools have an additional feature where you can acquire a group lock that will prevent others from killing the |
| 28 | +pool. The idea behind low level pools is that hey are never used directly be always by encapsulating high level pool. |
| 29 | +Once all locks are released you can close/kill a low level pool. |
| 30 | + |
| 31 | +## High level pools |
| 32 | + |
18 | 33 | ## License ##
|
19 | 34 |
|
20 | 35 | Copyright 2019 [Cees-Jan Kiewiet](http://wyrihaximus.net/)
|
|
0 commit comments