Generate a unique id, having - hopefully - a very small chance of collission.
For now this is provided by uuid.uuid4().
Iterate over all elements in the iterator, and when its exhausted yield the last value infinitely.
Retry the function over and over until max retries is exceeded.
For each retry we sleep a for a while before we try again, this interval is increased for every retry until the max seconds is reached.
Parameters: |
|
---|