Registry / async / spatie-async

spatie-async

JSON →
library1.8.2phppackagistunverified

Asynchronous and parallel PHP execution using the PCNTL extension.

composer require spatie/async
INSTALL
IMPORT
SIG · SPATIE-ASYNC
S
spatie-async
asyncphpv1.8.2
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.

Pool
✓ use Spatie\Async\Pool;

Run a simple async task

use Spatie\Async\Pool; $pool = Pool::create(); $pool->add(function () { return 1 + 1; })->then(function ($output) { echo $output; }); $pool->wait();
Debug
Known issues
breakingRequires pcntl extension which is not available on Windows or some shared hosts.
fix
Ensure the pcntl extension is installed and enabled.
affects: >=1.0.0
Upgrade
Version history
1.8.2latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
29 hits · last 30 days
node
26
OpenAI (training)
1
Resources
spatie-async — pip install spatie-async · libregistry