suspend fun <T> retry(maxRetry: Int, timeout: Duration, delay: Duration = timeout, multiplier: Int = 1, f: () -> T): T
Retry the given lambda f in case of assertion errorAssertionError and exception Exception. Stops trying when maxRetry or timeout is reached.
suspend fun <T, E : Throwable> retry(maxRetry: Int, timeout: Duration, delay: Duration = timeout, multiplier: Int = 1, exceptionClass: KClass<E>, f: () -> T): T
Retry the given lambda f in case of assertion errorAssertionError and exception of type exceptionClass. Stops trying when maxRetry or timeout is reached. Or an exception other than exceptionClass is thrown