Compatibility with java.time • opensavvy.prepared.compat.java.time
Package-level declarations
Properties
clockJava
@ExperimentalCoroutinesApival Time.clockJava: Clock
Creates a Clock that follows the virtual time in this test.
nowJava
@ExperimentalCoroutinesApival Time.nowJava: Instant
Accesses the current virtual time within this test, as an Instant.
Functions
delayUntil
@ExperimentalCoroutinesApisuspend fun Time.delayUntil(instant: Instant)
Delays until the virtual time reaches instant, executing all enqueued tasks in order.
set
@ExperimentalCoroutinesApisuspend fun Time.set(instant: Instant)
Advances the virtual time until it reaches instant.