Tags: reactphp-parallel/runtime
Tags
Fully reworked the runtime public facing API to utilize fibers:
From:
```php
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:
```php
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](#67) thanks to @WyriHaximus
- [62: Bump composer/composer from 2.6.6 to 2.7.0](#62) thanks to @dependabot[bot]
- [59: Target event loop v2@dev](#59) thanks to @WyriHaximus
- [56: Update dependency react/promise to v3](#56) thanks to @renovate[bot]
- [13: Bump wyrihaximus/async-test-utilities from 2.2.0 to 3.0.0](#13) thanks to @dependabot-preview[bot]
Dependencies 📦,Enhancement ✨
----------------------------
- [65: [3.x] Down bumpto PHP 8.1](#65) thanks to @WyriHaximus
Dependencies 📦,Feature 🏗
------------------------
- [58: Add template types](#58) thanks to @WyriHaximus
Enhancement ✨
-------------
- [68: Add example](#68) thanks to @WyriHaximus
- [66: [3.x] Add type testing](#66) thanks to @WyriHaximus
- [61: Update readme example](#61) thanks to @WyriHaximus