saq.utils¶
Utils
Module Contents¶
- saq.utils.exponential_backoff(attempts, base_delay, max_delay=None, jitter=True)[source]¶
Get the next delay for retries in exponential backoff.
- async saq.utils.cancel_tasks(tasks)[source]¶
Cancel tasks and wait for all of them to finish
- Parameters:
tasks (collections.abc.Iterable[asyncio.Task])
- Return type:
None