delayUntil

suspend fun Time.delayUntil(instant: Instant)(source)

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.


Delays until the virtual time reaches isoString, formatted as an ISO 8601 timestamp, 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.

See also

Set the current time

Access the current time