sleep

open suspend fun sleep(duration: Duration)

Causes the current execution of the function invocation to sleep for the given duration.

Parameters

duration

for which to sleep.