guzzlehttp/promises
Guzzle Promises is a small PHP promise library that powers Guzzle's asynchronous requests. It provides promise chaining, synchronous waiting, cancellation, and helpers for coordinating groups of promises. Install it directly when you need promise composition without the full HTTP client.
TReason of FulfilledPromise and Create::promiseFor() to neverTValue of RejectedPromise and Create::rejectionFor() to neverEachPromise abandoning its aggregate when the pending window drains unsettledEachPromise admitting new work after its aggregate has settledconcurrency config support to Utils::all() and Each::of()concurrency config support to Utils::settle()Utils::inspect() to return actual rejection reasonsUtils::inspect() to prefer the settled state over late wait function exceptionsEachPromiseIteratorAggregate inputs to collection helpers instead of treating them as a single valueUtils::all() handling of dynamically-added settled values and raw valuesUtils::all() rejecting generator inputsEachPromiseEachPromise instances now resolve when the task queue runs without wait()Utils::inspect() returning the internal reason array instead of the AggregateExceptioncall_user_func* with native callsGuzzleHttp\Promise namespaceUtils::taskeach_limit skipping promises and failing$recursive flag to alleach processingmethod_exists crashes on PHP 8wait() foreign promise compatibility\Throwable on PHP 7+wait
function was called.How can I help you explore Laravel packages today?