withSafeMethods

open fun withSafeMethods(maxAttempts: Int, backoff: Duration, maxBackoff: Duration): RetryPolicy
open fun withSafeMethods(maxAttempts: Int, backoff: Duration): RetryPolicy