Registry / async / kriswallsmith-spork

kriswallsmith-spork

JSON →
library0.3phppackagistunverified

Asynchronous PHP

composer require kriswallsmith/spork
INSTALL
IMPORT
SIG · KRISWALLSMITH-SPOR
K
kriswallsmith-spork
asyncphpv0.3
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.

Fork
use Spork\Fork;

Demonstrates forking a function call and waiting for the result

<?php require_once 'vendor/autoload.php'; use Spork\Fork; $fork = new Fork(); $promise = $fork->call(function () { sleep(1); return 'done'; }); echo $promise->wait(); // 'done'
Debug
Known issues
gotchaThis package is experimental and not recommended for production use.
fix
Consider using ReactPHP or Amp for production async PHP.
affects: >=0.1.0
Upgrade
Version history
0.3latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
28 hits · last 30 days
node
26
OpenAI (training)
1
Resources
kriswallsmith-spork — pip install kriswallsmith-spork · libregistry