Compatibility with java.time • opensavvy.prepared.compat.java.time • delayUntil
delayUntil
@ExperimentalCoroutinesApisuspend 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.
It is not possible to set the time to a date in the past.