Skip to content

Commit ecf636c

Browse files
committed
Extracted interfaces into a separate package
1 parent f377f6c commit ecf636c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+35
-53477
lines changed

.github/FUNDING.yml

Lines changed: 0 additions & 1 deletion
This file was deleted.

.github/workflows/main.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.php_cs

Lines changed: 0 additions & 24 deletions
This file was deleted.

.scrutinizer.yml

Lines changed: 0 additions & 68 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 38 deletions
This file was deleted.

README.md

Lines changed: 22 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,35 @@
1-
# reactphp-parallel
1+
# reactphp-parallel-contracts
22

3-
[![Build Status](https://travis-ci.com/WyriHaximus/reactphp-parallel.png)](https://travis-ci.com/WyriHaximus/reactphp-parallel)
4-
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/react-parallel/v/stable.png)](https://packagist.org/packages/WyriHaximus/react-parallel)
5-
[![Total Downloads](https://poser.pugx.org/WyriHaximus/react-parallel/downloads.png)](https://packagist.org/packages/WyriHaximus/react-parallel)
6-
[![License](https://poser.pugx.org/wyrihaximus/react-parallel/license.png)](https://packagist.org/packages/wyrihaximus/react-parallel)
3+
[![Build Status](https://travis-ci.com/WyriHaximus/reactphp-parallel-contracts.png)](https://travis-ci.com/WyriHaximus/reactphp-parallel-contracts)
4+
[![Latest Stable Version](https://poser.pugx.org/WyriHaximus/react-parallel-contracts/v/stable.png)](https://packagist.org/packages/WyriHaximus/react-parallel-contracts)
5+
[![Total Downloads](https://poser.pugx.org/WyriHaximus/react-parallel-contracts/downloads.png)](https://packagist.org/packages/WyriHaximus/react-parallel-contracts)
6+
[![License](https://poser.pugx.org/wyrihaximus/react-parallel-contracts/license.png)](https://packagist.org/packages/wyrihaximus/react-parallel-contracts)
77

8-
ReactPHP bindings around ext-parallel
8+
Interfaces for ReactPHP ext-parallel related packages
99

1010
## Install ##
1111

1212
To install via [Composer](http://getcomposer.org/), use the command below, it will automatically detect the latest version and bind it with `~`.
1313

1414
```
15-
composer require wyrihaximus/react-parallel
15+
composer require wyrihaximus/react-parallel-contracts
1616
```
1717

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+
1833
## License ##
1934

2035
Copyright 2019 [Cees-Jan Kiewiet](http://wyrihaximus.net/)

channels-joe.php

Lines changed: 0 additions & 50 deletions
This file was deleted.

channels-two-way.php

Lines changed: 0 additions & 105 deletions
This file was deleted.

0 commit comments

Comments
 (0)