Skip to content

Compatibility with java.timeopensavvy.prepared.compat.java.time

Package-level declarations

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


@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.