3.0.0
Fully reworked the runtime public facing API to utilize fibers:
From:
use React\EventLoop\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\EventLoop\EventLoopBridge;
$runtime = Runtime::create(new EventLoopBridge());
echo $runtime->run(function (): int {
sleep(3);
return 3;
}), PHP_EOL;
List view
0 issues of 0 selected
There are no open issues in this milestone
Add issues to milestones to help organize your work for a particular release or project. Find and add issues with no milestones in this repo.