def retry.cap
import bend-kit-http@0.38.5.0/http.bend as Httpimport Base
4469# Retry. The wait before retry n (0 first) is 500 ms doubled n times, at most 30 s;
4470# its upper half is jitter r: backoff(n, r) = half + r mod (half + 1).
4471def retry.cap() -> U32:
4472 30000