Skip to content

opensavvy.prepared.compat.java.time

Properties

clockJava

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

nowJava

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

Functions

delayUntil

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

set

@ExperimentalCoroutinesApi
suspend fun Time.set(instant: Instant)

Advances the virtual time until it reaches instant.