Registry / async / guzzlehttp-promises

guzzlehttp-promises

JSON →
library2.5.0phppackagistunverified

Guzzle promises library

composer require guzzlehttp/promises
INSTALL
IMPORT
SIG · GUZZLEHTTP-PROMISE
G
guzzlehttp-promises
asyncphpv2.5.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.

Promise
use GuzzleHttp\Promise\Promise;

Create and resolve a promise

use GuzzleHttp\Promise\Promise; use GuzzleHttp\Promise\Utils; $promise = new Promise(function () use (&$promise) { $promise->resolve('result'); }); $result = Utils::unwrap([$promise]);
Debug
Known issues
breakingVersion 2.x uses a different API than 1.x (e.g., no `wait()` on Promise)
fix
Use `Utils::unwrap()` or `Utils::settle()` instead of `wait()`
affects: >=2.0.0
Upgrade
Version history
2.5.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
31 hits · last 30 days
node
28
OpenAI (training)
1
Resources
guzzlehttp-promises — pip install guzzlehttp-promises · libregistry