backoffMsFor method
The backoff wait (virtual ms) after the attemptth failure
(1-based).
Implementation
int backoffMsFor(int attempt) {
final factor = backoffFactor <= 0 ? 1.0 : backoffFactor;
return backoffBaseMs * powInt(factor, attempt - 1);
}