Download the PHP package bingo-soft/concurrent without Composer
On this page you can find all versions of the php package bingo-soft/concurrent. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download bingo-soft/concurrent
More information about bingo-soft/concurrent
Files in bingo-soft/concurrent
Download bingo-soft/concurrent
More information about bingo-soft/concurrent
Files in bingo-soft/concurrent
Vendor bingo-soft
Package concurrent
Short Description Concurrent programming constructs for PHP
License MIT
Homepage https://github.com/bingo-soft/concurrent
Package concurrent
Short Description Concurrent programming constructs for PHP
License MIT
Homepage https://github.com/bingo-soft/concurrent
Please rate this library. Is it a good library?
Informations about the package concurrent
Concurrent
Concurrent programming constructs for PHP
Installation
Install library, using Composer:
Example 1 (simple pool)
Example 2 (CountDownLatch)
Example 3 (ForkJoinPool with recursive task)
Example 4 (CompletableFuture based on multiprocessing)
Example 5 (ScheduledPoolExecutor, cycling jobs)
Example 6 (ScheduledPoolExecutor, delayed jobs)
Running tests
Running docker container with examples
To test core usage, you can edit TestTask
- change value 2000
in run
method to 8000
and then run container again. When container is running check how cores are used - use top
command, then press f
and turn on p
(Last used Cpu). You will see, that while container is running, different processor cores are used.
Dependencies
The library depends on Swoole extension and on GMP extension - the last one for handling large numbers.
All versions of concurrent with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
charescape/serialize-closure Version ^3.8
bingo-soft/util Version ^1.8
charescape/serialize-closure Version ^3.8
bingo-soft/util Version ^1.8
The package bingo-soft/concurrent contains the following files
Loading the files please wait ....