Exponential backoff starting at a specified time Defaults to 1.35^attempt seconds. This results in about four minutes total time for 15 attempts.
attempt at which to stop (exclusive, starting at 0)
unix timestamp in ms
Get the delay until next attempt, assuming the last attempt was the previous index. Time elapsed since the last call is subtracted from the delay. Attempt 0 is always immediate.
Gets the total time in milliseconds this exponential backoff will take, if all attempts are used.
Returns true, if there are attempts left
Wait for the next attempt. Time elapsed since the last call is subtracted from the delay. Attempt 0 is always immediate. Increases internal attempt counter
true, if waited for the time of the current step, false if the maxAttempt was reached
Get time until next attempt using exponential backoff Defaults to 1.35^attempt seconds. This results in about four minutes total time for 15 attempts. The first attempt always runs immediately