delayUntil

suspend fun Clock.delayUntil(instant: Instant)

Suspend the coroutine until instant without blocking the thread. If Clock.now is greater than instant, this function returns immediately.

Coroutines delayed for more than one minute will occassionally be resumed to account for clock drift.


suspend fun Clock.delayUntil(dateTime: LocalDateTime, timeZone: TimeZone)

Suspend the coroutine until dateTime in timeZone without blocking the thread. If Clock.now is greater than the Instant associated with dateTime and timeZone, this function returns immediately.

Coroutines delayed for more than one minute will occassionally be resumed to account for clock drift.