async
async copied to clipboard
Async utilities and fibers for ReactPHP.
With PHP 8.2 coming out later this year, we should be reading for it's release to ensure all out code works on it.
With PHP 8.2 coming out later this year, we should be reading for it's release to ensure all out code works on it.
With PHP 8.2 coming out later this year, we should be reading for it's release to ensure all out code works on it.
These annotations will aid static analyses like PHPStan and Psalm to enhance type-safety for this project and projects depending on it. This PR builds on the discussion at https://github.com/vimeo/psalm/discussions/7559 Once...
Reproduce: ```php use React\EventLoop\Factory as Loop; use React\Async; use React\Promise\Deferred; $loop = Loop::create(); $deferred = new Deferred; $promise = $deferred->promise(); $loop->addTimer(0.02, function() use($deferred) { $deferred->resolve(); }); $foo = function() use($promise)...
This adds a somewhat boring that measures how much time it takes to spawn 1.000.000 fibers.
This PR sets up PHPStan to run on GitHub Actions, as discussed in [discussions#469](https://github.com/orgs/reactphp/discussions/469). ### Overview - [x] Sets up PHPStan to run on GitHub Actions on PHP 8.1 only...
This test currently has a different execution order in my adapter, so let's document the expected execution order.