Current implementation of retry middleware use equals intervals between retries. It may be useful to have possibility to redefine policy for retry intervals.
probably we can accept optional argument with a function that will accept 2 parameters with current retry counter and initial retry interval, based on these parameters function should calculate interval that needs to be awaited.
Current implementation of retry middleware use equals intervals between retries. It may be useful to have possibility to redefine policy for retry intervals.
probably we can accept optional argument with a function that will accept 2 parameters with current retry counter and initial retry interval, based on these parameters function should calculate interval that needs to be awaited.