delayed

fun <T> delayed(value: T, by: Duration = 1.seconds): Awaitable<T>

Suspends for the specified duration and returns value.


fun delayed(by: Duration = 1.seconds): Awaitable<Unit>

Suspends for the specified duration and returns Unit.


fun <T> delayed(by: Duration = 1.seconds, valueProvider: suspend SuspendCallDefinitionScope<T>.(CallArgs) -> T): Awaitable<T>

Suspends for the specified duration and returns value provided on each call by valueProvider.