onAttempt

var onAttempt: (attempt: Int, delayMs: Long?) -> Unit