Loading
APIs rate-limit you, so you retry with exponential backoff. Write `backoff_delays(base, attempts, cap)` that returns the list of waits in seconds before each retry: base, base*2, base*4, ... never more than `cap`.
min(cap, base * 2 ** i) for i in range(attempts).