Skip to content

3.0.0

Choose a tag to compare

@github-actions github-actions released this 10 Feb 13:17
08b038c

Fully reworked the public facing API to utilize fibers:

From:

use React�ventLoop\Factory;
use ReactParallel�ventLoop�ventLoopBridge;
use ReactParallel\Pool\Infinite\Infinite;

$loop = Factory::create();
$infinite = new Infinite($loop, new EventLoopBridge($loop), 1);
$infinite->run(function () {
    sleep(1);

    return 'Hoi!';
})->then(function (string $message) use ($infinite) {
    echo $message, PHP_EOL;
    $infinite->close();
});
$loop->run();

To:

use ReactParallel�ventLoop�ventLoopBridge;
use ReactParallel\Pool\Infinite\Infinite;

$infinite = new Infinite(new EventLoopBridge(), 1);

Loop::futureTick(async(static function () use ($infinite) {
    echo $infinite->run(function () {
        sleep(1);

        return 'Hoi!';
    }), PHP_EOL;
    $infinite->close();
});

3.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 30
  • Total contributors: 2

Bug 🐞,Dependencies 📦

Dependencies 📦,Feature 🏗

Dependencies 📦,Enhancement ✨

Dependencies 📦

Enhancement ✨