ExponentialInterval |
class ExponentialInterval : Interval |
FibonacciInterval |
Fibonacci delay implements a delay where each duration is calculated as a multiplier of the fibonacci sequence, 0, 1, 1, 2, 3, 5.... class FibonacciInterval : Interval |
FixedInterval |
Generates a fixed (linear) poll interval based on the supplied duration class FixedInterval : Interval |
Interval |
A Interval determines how often Kotest will invoke the predicate function for an until block. interface Interval |
UntilListener |
interface UntilListener<in T> |
kotlin.time.Duration |
fibonacci |
fun fibonacci(n: Int): Int |
fibonacciInterval |
fun fun |
fixedInterval |
fun |
until |
Executes a function until it returns true or the duration elapses. suspend fun until(duration: Duration, interval: Interval = 1.seconds.fixed(), f: () -> Boolean): Booleansuspend fun <T> until(duration: Duration, predicate: (T) -> Boolean, f: () -> T): Tsuspend fun <T> until(duration: Duration, interval: Interval, predicate: (T) -> Boolean, f: () -> T): T
Executes a function until the given predicate returns true or the duration elapses. suspend fun <T> until(duration: Duration, interval: Interval, predicate: (T) -> Boolean, listener: UntilListener<T>, f: () -> T): T |
untilListener |
fun <T> untilListener(f: (T) -> Unit): UntilListener<T> |