Compatibility with KotlinX.Datetime • opensavvy.prepared.compat.kotlinx.datetime • delayUntil
delayUntil¶
@ExperimentalCoroutinesApi
suspend fun Time.delayUntil(instant: Instant)
Delays until the virtual time reaches instant, executing all enqueued tasks in order.
delayUntil
is useful to artificially trigger time-dependent algorithms. To set the initial time at the start of the test, use set.
@ExperimentalCoroutinesApi
suspend fun Time.delayUntil(isoString: String)