The state of the TestClock
.
The default initial state of the TestClock
with the clock time set to
0
and no effects scheduled to run.
Accesses a TestClock
instance in the environment and increments the time
by the specified duration, running any actions scheduled for on or before
the new time.
Accesses a TestClock
instance in the environment and returns the current
fiber time for this fiber.
Constructs a new TestClock
with the specified initial state.
Constructs a new TestClock
with the specified initial state. This can
be useful for providing the required environment to an effect that
requires a Clock
, such as with ZIO!.provide.
Constructs a new Test
object that implements the TestClock
interface.
Constructs a new Test
object that implements the TestClock
interface.
This can be useful for mixing in with implementations of other interfaces.
Accesses a TestClock
instance in the environment and sets the clock time
to the specified time, running any actions scheduled for on or before the
new time.
Accesses a TestClock
instance in the environment, setting the time zone
to the specified time zone.
Accesses a TestClock
instance in the environment, setting the time zone
to the specified time zone. The clock time in terms of nanoseconds since
the epoch will not be altered and no scheduled actions will be run as a
result of this effect.
Accesses a TestClock
instance in the environment and returns a list of
times that effects are scheduled to run.
Accesses a TestClock
instance in the environemtn and returns the current
time zone.