Registry / async / react-async

react-async

JSON →
library4.3.0phppackagistunverified

Async utilities and fibers for ReactPHP.

composer require react/async
INSTALL
IMPORT
SIG · REACT-ASYNC
R
react-async
asyncphpv4.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

async
use React\Async\async;

Write asynchronous code using async/await syntax with ReactPHP.

<?php require 'vendor/autoload.php'; use function React\Async\async; use function React\Async\await; $asyncFunction = async(function () { $result = await(\React\Promise\resolve('Hello')); return $result . ' World'; }); $asyncFunction()->then(function ($value) { echo $value; // Hello World });
Debug
Known issues
breakingRequires PHP 8.1+ for fibers support.
fix
Upgrade PHP to 8.1 or later.
affects: <4.0.0
Upgrade
Version history
4.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
34 hits · last 30 days
node
30
Amazon
1
OpenAI (training)
1
Resources
react-async — pip install react-async · libregistry