Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/krakjoe/parallel
A succinct parallel concurrency API for PHP8
https://github.com/krakjoe/parallel
Last synced: 21 days ago
JSON representation
A succinct parallel concurrency API for PHP8
- Host: GitHub
- URL: https://github.com/krakjoe/parallel
- Owner: krakjoe
- License: other
- Created: 2019-02-11T23:49:15.000Z (over 5 years ago)
- Default Branch: develop
- Last Pushed: 2024-08-23T10:07:08.000Z (2 months ago)
- Last Synced: 2024-10-01T21:23:44.967Z (about 1 month ago)
- Language: C
- Homepage:
- Size: 990 KB
- Stars: 1,452
- Watchers: 60
- Forks: 95
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
- awesome-php-extensions - parallel - 并行运算 (异步)
README
parallel
========[![Linux](https://github.com/krakjoe/parallel/actions/workflows/linux.yml/badge.svg)](https://github.com/krakjoe/parallel/actions/workflows/linux.yml)
[![AddressSanitizer](https://github.com/krakjoe/parallel/actions/workflows/asan.yml/badge.svg)](https://github.com/krakjoe/parallel/actions/workflows/asan.yml)
[![Windows](https://github.com/krakjoe/parallel/actions/workflows/windows.yml/badge.svg)](https://github.com/krakjoe/parallel/actions/workflows/windows.yml)
[![Coverage Status](https://coveralls.io/repos/github/krakjoe/parallel/badge.svg?branch=develop)](https://coveralls.io/github/krakjoe/parallel)A succinct parallel concurrency API for PHP 8
[![GoFundMe](https://img.shields.io/badge/GoFundMe-00B964.svg?style=for-the-badge&logo=GoFundMe&logoColor=white)](https://gofund.me/c34f3dde)
Documentation
=============Documentation can be found in the PHP manual: https://php.net/parallel
Requirements and Installation
=============================See [INSTALL.md](INSTALL.md)
Hello World
===========```php
run(function(){
for ($i = 0; $i < 500; $i++)
echo "*";return "easy";
});for ($i = 0; $i < 500; $i++) {
echo ".";
}printf("\nUsing \\parallel\\Runtime is %s\n", $future->value());
```This may output something like (output abbreviated):
```
.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*.*
Using \parallel\Runtime is easy
```Development
===========See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines on contribution and development (and debugging).