type Circuit
import bend-kit-retry@0.3.0.0/retry.bend as Retryimport Base
19# threshold: failures in a row, each inside window ms of the newest, that open the circuit. cooldown: ms it stays open.
20# probes: attempts allowed at once while half-open.
21type Circuit is Data:
22 Circuit{threshold: Nat, window: Nat, cooldown: Nat, probes: Nat}