Usage.backoff_for: def of cswap-bend-cli@0.1.0.0 Import: import cswap-bend-cli@0.1.0.0/policy/usage.bend as Usage Lines 374-378 of cswap-bend-cli@0.1.0.0/policy/usage.bend: https://jend.leeeet.dev/read.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&start_line=374&end_line=378 import Base import cswap-bend-cli@0.1.0.0/policy/types.bend as T # Seconds of backoff after the n-th consecutive failure: 30, 60, 120, 240, # 480, 600; a server's Retry-After raises it (Retry-After 0 on an http-429 # means at least 300 s). def backoff_for(+n: Nat, +e: T.ErrKind, +ra: Maybe<&2, Nat>) -> Nat: backoff.retry(backoff.rate_limited(e), ra, backoff.cap(n)) Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/types.bend&name=ErrKind https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&name=backoff.cap https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&name=backoff.rate_limited https://jend.leeeet.dev/definition.txt?path=cswap-bend-cli@0.1.0.0/policy/usage.bend&name=backoff.retry