guzzlehttp/promises
Promises/A+ implementation for PHP with iterative, stack-safe chaining. Provides synchronous wait(), cancellation, interop with any thenable, and coroutine-style async/await via Coroutine::of(). Includes Promise, FulfilledPromise, and RejectedPromise.
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?