sleepUntil

suspend fun sleepUntil(deadline: Duration)(source)

Suspends until elapsed reaches deadline.

Deadlines at or before the current time return immediately. Cancelling the calling coroutine removes only this sleeper.

Parameters

deadline

The elapsed time since start at which to resume.