You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This commit was created on GitHub.com and signed with GitHub’s verified signature.
Pipeline::onRejected(\Closure(\Throwable): \Throwable): map a rejection (CircuitOpenException, BulkheadFullException, the breaker's StorageFailure) to a domain exception once per pipeline; runs outermost, before fallback; other exceptions pass through untouched (#3).
CompiledPipeline::call() is generic (@template T): Psalm infers the result type from the callback, no @var at call sites (#3).
Pipeline::bulkhead() accepts any Rasuvaeff\Bulkhead\Bulkhead and Pipeline::circuitBreaker() any Rasuvaeff\CircuitBreaker\CircuitBreakerInterface, so decorators and test stubs can replace the leaves (#4).
New Rejection::is() / Rejection::retryAfter(): tell "rejected without an attempt" from a downstream failure and get a relative retry hint; RetryExhausted is never a rejection (#5).
Requires rasuvaeff/retry ^1.3, rasuvaeff/circuit-breaker ^1.3, rasuvaeff/bulkhead ^1.3, and psr/clock ^1.0.