3.0.0
Closed Jul 25, 2021
100% complete
Major new release defaulting to using the global loop accessor that came with react/eventloop
1.2.
This changes current code from this:
<?php
declare(strict_types=1);
use React\EventLoop\Factory;
use function WyriHaximus\React\futurePromise;
$loop = Factory::create();
futurePromise($loop)->then(static function (): void {
echo 'Done', PHP_EOL;
});
f…
Major new release defaulting to using the global loop accessor that came with react/eventloop
1.2.
This changes current code from this:
<?php
declare(strict_types=1);
use React\EventLoop\Factory;
use function WyriHaximus\React\futurePromise;
$loop = Factory::create();
futurePromise($loop)->then(static function (): void {
echo 'Done', PHP_EOL;
});
futurePromise($loop)->then(static function (string $message): void {
echo $message, PHP_EOL;
}, 'Also done');
$loop->run();
To this:
<?php
declare(strict_types=1);
use function WyriHaximus\React\futurePromise;
futurePromise()->then(static function (): void {
echo 'Done', PHP_EOL;
});
futurePromise()->then(static function (string $message): void {
echo $message, PHP_EOL;
}, 'Also done');
No more passing in the loop to any of the functions
This milestone is closed.
No open issues remain. View closed issues or see open milestones in this repository.