Package-level declarations

Properties

Link copied to clipboard

Creates a Clock that follows the virtual time in this test.

Link copied to clipboard

Accesses the current virtual time within this test, as an Instant.

Functions

Link copied to clipboard

Delays until the virtual time reaches isoString, formatted as an ISO 8601 timestamp, executing all enqueued tasks in order.

suspend fun Time.delayUntil(instant: Instant)

Delays until the virtual time reaches instant, executing all enqueued tasks in order.

Link copied to clipboard
suspend fun Time.set(isoString: String)

Advances the virtual time until it reaches isoString, formatted as an ISO 8601 timestamp.

suspend fun Time.set(instant: Instant)

Advances the virtual time until it reaches instant.