delayed

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

Suspends for the specified duration and returns value.


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

Suspends for the specified duration and returns Unit.


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

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