Releases: reactphp-parallel/runtime
Releases · reactphp-parallel/runtime
3.0.0
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 📦
- 67: Use stubs from stubs package thanks to @WyriHaximus
- 62: Bump composer/composer from 2.6.6 to 2.7.0 thanks to @dependabot[bot]
- 59: Target event loop v2@dev thanks to @WyriHaximus
- 56: Update dependency react/promise to v3 thanks to @renovate[bot]
- 13: Bump wyrihaximus/async-test-utilities from 2.2.0 to 3.0.0 thanks to @dependabot-preview[bot]
Dependencies 📦,Enhancement ✨
- 65: [3.x] Down bumpto PHP 8.1 thanks to @WyriHaximus
Dependencies 📦,Feature 🏗
- 58: Add template types thanks to @WyriHaximus
Enhancement ✨
- 68: Add example thanks to @WyriHaximus
- 66: [3.x] Add type testing thanks to @WyriHaximus
- 61: Update readme example thanks to @WyriHaximus
2.0.0
BC break
1.0.0
- Initial release