def settle.outcome
bend-kit-hairpin@0.14.0.0 · hairpin.bend:261
import bend-kit-hairpin@0.14.0.0/hairpin.bend as Hairpin
import Base
import bend-kit-http@0.38.1.1/http.bend as Http
import bend-kit-bytes@0.3.3.0/bytes.bend as Bytes
import bend-kit-retry@0.3.0.0/retry.bend as Retry
261
262def settle.outcome(-R: Type, +p: Retry.Policy, +n: Nat, +o: Retry.Outcome, +br: Retry.Breaker, b: Retry.Budget, body: Bytes.Bytes,
263 pool: Http.Pool, jar: Maybe<&2, Http.Jar>, r: Result<&1, &1, Http.Err, R>) -> IO(Step<R>):
264 do IO<Step<R>>:
265 now : Nat <- clock(Bool.or(breaker.on(br), transient(o)))
266 rnd : Nat <- jitter.io(transient(o))
267 return settle.at(R, now, rnd, p, n, o, br, b, body, pool, jar, r)