sleep

suspend fun sleep(options: SleepOptions)

Suspends the execution of the current coroutine for the specified options.ms milliseconds.

Returns after the specified duration.

Example usage:

sleep(SleepOptions(ms = 2000))