Skip to content

Releases: reactphp-parallel/runtime

3.0.0

09 Feb 17:11
724b2e6
Compare
Choose a tag to compare

Fully reworked the runtime public facing API to utilize fibers:

From:

use React�ventLoop\Factory;
use ReactParallel\Runtime\Runtime;
use ReactParallel\FutureToPromiseConverter\FutureToPromiseConverter;

$loop = Factory::create();
$runtime = Runtime::create(new FutureToPromiseConverter($loop));

$runtime->run(function () {
    sleep(3);

    return 3;
})->done(function (int $int): void {
    echo $int, PHP_EOL;
});

$loop->run();

To:

use ReactParallel\Runtime\Runtime;
use ReactParallel�ventLoop�ventLoopBridge;

$runtime = Runtime::create(new EventLoopBridge());

echo $runtime->run(function (): int {
    sleep(3);

    return 3;
}), PHP_EOL;

3.0.0

  • Total issues resolved: 0
  • Total pull requests resolved: 10
  • Total contributors: 4

Dependencies 📦

Dependencies 📦,Enhancement ✨

Dependencies 📦,Feature 🏗

Enhancement ✨

2.0.0

07 Nov 22:39
2.0.0
5c8ece6
Compare
Choose a tag to compare

BC break

1.0.0

26 Feb 07:49
1.0.0
1c50a6c
Compare
Choose a tag to compare
  • Initial release