wyrihaximus / react-parallel
Bridging ext-parallel and ReactPHP
Fund package maintenance!
WyriHaximus
Installs: 1 454
Dependents: 3
Suggesters: 1
Security: 0
Stars: 16
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^7.3
- ext-parallel: *
- react/event-loop: ^1.1
- react/promise: ^2.7
- reactivex/rxphp: ^2.0
- wyrihaximus/pool-info: ^1.0
- wyrihaximus/react-parallel-contracts: ^1.0
- wyrihaximus/react-parallel-future-to-promise-converter: ^1.1 || ^1.0.1
- wyrihaximus/react-parallel-infinite-pool: ^1.0
- wyrihaximus/react-parallel-runtime: ^1.0
- wyrihaximus/ticking-promise: ^1.6
Requires (Dev)
- moneyphp/money: ^3.2 || ^3.2.1
- ocramius/package-versions: ^1.4
- wyrihaximus/async-test-utilities: ^1.1
- wyrihaximus/iterator-or-array-to-array: ^1.1
- wyrihaximus/react-parallel-pool-tests: ^1.0
This package is auto-updated.
Last update: 2020-09-11 19:01:35 UTC
README
This package has been moved to: https://github.com/reactphp-parallel/reactphp-parallel
reactphp-parallel
ReactPHP bindings around ext-parallel
Install
To install via Composer, use the command below, it will automatically detect the latest version and bind it with ~
.
composer require wyrihaximus/react-parallel
Pools
Low level pools
Low level pools only deal with executing closures on the Runtimes (threads) that make out the pools. And as such there
is only one low level pool and that is Infinite
, which will, as the name suggest, scale infinitely. While you can use
such pools directly these are intended to be used by high level pools which have more control over what and how many
things you run on these threads.
Low level pools have an additional feature where you can acquire a group lock that will prevent others from killing the pool. The idea behind low level pools is that hey are never used directly be always by encapsulating high level pool. Once all locks are released you can close/kill a low level pool.
License
Copyright 2019 Cees-Jan Kiewiet
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.