code: def backoff_delays(start, stop, factor=2.0, jitter=False):
      
      cur = start
      while cur <= stop:
          if jitter:
              yield cur - (cur * random.random())
          else:
              yield cur
          cur = cur * factor
docs: Geometric backoff sequence w/ jitter