Skip to content

Conversation

@renovate-runner
Copy link
Contributor

@renovate-runner renovate-runner bot commented Nov 6, 2025

This PR contains the following updates:

Package Change Age Confidence
react-parallel/react-parallel ^1^1 || ^2 age confidence

Release Notes

reactphp-parallel/reactphp-parallel (react-parallel/react-parallel)

v2.1.0

Compare Source

2.1.0

  • Total issues resolved: 0
  • Total pull requests resolved: 1
  • Total contributors: 1

Dependencies 📦

v2.0.0

Compare Source

Fully reworked the public facing API to utilize fibers:

From:

<?php

use PackageVersions\Versions;
use React�ventLoop\Factory;
use ReactParallel\Factory as ParallelFactory;
use ReactParallel\ObjectProxy\Generated\Proxies\WyriHaximus\Metrics\Registry as RegistryProxy;
use WyriHaximus\Metrics\Label;
use function React\Promise�ll;
use WyriHaximus\React\Parallel\Finite;
use function WyriHaximus\iteratorOrArrayToArray;
use WyriHaximus\React\Parallel\ReturnThread;
use WyriHaximus\React\Parallel\FiniteWorker;

$options = getopt(
    '',
    [
        'iterations:',
        'delay::',
    ],
);

require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

$loop = Factory::create();
echo 'Loop: ', get_class($loop), PHP_EOL;

$parallelFactory = new ParallelFactory($loop);
$pool = $parallelFactory->lowLevelPool();

$loop->futureTick(static function () use ($pool, $options): void {
    foreach (range(0, 7) as $i) {
        $pool->run(static function (int $index, int $iterations, bool $delay): int {
            for ($i = 0; $i < $iterations; $i++) {
                if ($delay) {
                    usleep($i * 3.3);
                }
                echo "�[" . (30 + $index) . ";" . (40 + $index) . "m.�[0m";
            }
            return true;
        }, [$i, (int)$options['iterations'], isset($options['delay'])]);
    }
});

echo PHP_EOL, 'Loop::run()', PHP_EOL;
$loop->run();
echo PHP_EOL, 'Loop::done()', PHP_EOL;

To:

<?php

declare(strict_types=1);

use React�ventLoop\Loop;
use ReactParallel\Factory as ParallelFactory;
use function React\Async�sync;

$options = getopt(
    '',
    [
        'iterations:',
        'delay::',
    ],
);

require dirname(__DIR__) . DIRECTORY_SEPARATOR . 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';

echo 'Loop: ', Loop::get()::class, PHP_EOL;

$parallelFactory = new ParallelFactory();
$pool = $parallelFactory->lowLevelPool();

foreach (range(0, 7) as $i) {
    Loop::futureTick(async(static function () use ($i, $pool, $options): void {
        $pool->run(static function (int $index, int $iterations, bool $delay): bool {
            for ($i = 0; $i < $iterations; $i++) {
                if ($delay) {
                    usleep((int) ($i * 0.3));
                }
                echo "�[" . (30 + $index) . ";" . (40 + $index) . "m.�[0m";
            }
            return true;
        }, [$i, (int)$options['iterations'], isset($options['delay'])]);
    }));
}

echo PHP_EOL, 'Loop::run()', PHP_EOL;

2.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 28
  • Total contributors: 3

Dependencies 📦,Feature 🏗

Dependencies 📦,Enhancement ✨

Dependencies 📦

Enhancement ✨


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@renovate-runner renovate-runner bot added CI 🚧 Dependencies 📦 Pull requests that update a dependency file labels Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CI 🚧 Dependencies 📦 Pull requests that update a dependency file JSON 👨‍💼 MarkDown 📝 PHP 🐘 Hypertext Pre Processor

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant