Registry / async / spatie-async

spatie-async

JSON →
library1.8.2phppackagistunverified

Asynchronous and parallel PHP execution using the PCNTL extension.

async
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.

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 footguns
breakingRequires pcntl extension which is not available on Windows or some shared hosts.
Upgrade
Version history

Breaking-change detection hasn't run for this library yet.

Audit
Security & dependencies

CVE tracking and dependency tree are planned for a later release.

Agent activity
25 hits · last 30 days
bytedance
4
gptbot
3
amazonbot
3
claudebot
3
petalbot
2
bingbot
1
mj12bot
1
Resources