type Policy
import bend-kit-retry@0.3.0.0/retry.bend as Retryimport Base
45# attempts: tries in one layer, the first one included. base: the first backoff in ms. cap: the longest wait in ms.
46# deadline: ms from the start of the operation to its deadline. None: no deadline.
47type Policy is Data:
48 Policy{attempts: Nat, base: Nat, cap: U32, deadline: Maybe<&2, Nat>}