def failed
import bend-kit-retry@0.3.0.0/retry.bend as Retryimport Base
248# Failed, Unsafe, and Transient count as failures for the breaker. Settled and Rejected do not.
249def failed(o: Outcome) -> Bool:
250 match o:
251 case Settled{}:
252 False{}
253 case Failed{}:
254 True{}
255 case Rejected{}:
256 False{}
257 case Unsafe{}:
258 True{}
259 case Transient{after}:
260 True{}