Test
Attributes
- Source
- TestClock.scala
- Graph
-
- Supertypes
-
trait Producttrait Equalstrait TestClocktrait Restorabletrait Clocktrait Serializableclass Objecttrait Matchableclass AnyShow all
Members list
Type members
Inherited classlikes
Attributes
- Inherited from:
- Clock
- Source
- Clock.scala
- Supertypes
-
trait Serializableclass Objecttrait Matchableclass Any
Value members
Concrete methods
Increments the current clock time by the specified duration. Any effects that were scheduled to occur on or before the new time will be run in order.
Increments the current clock time by the specified duration. Any effects that were scheduled to occur on or before the new time will be run in order.
Attributes
- Source
- TestClock.scala
Increments the current clock time by the specified duration. Any effects that were scheduled to occur on or before the new time will be run in order.
Increments the current clock time by the specified duration. Any effects that were scheduled to occur on or before the new time will be run in order.
Attributes
- Source
- TestClock.scala
Returns the current clock time as an OffsetDateTime.
Returns the current clock time in the specified time unit.
Attributes
- Source
- TestClock.scala
Returns the current clock time as an Instant.
Constructs a java.time.Clock backed by the Clock service.
Returns the current clock time as a LocalDateTime.
Returns the current clock time in nanoseconds.
Saves the TestClock's current state in an effect which, when run, will restore the TestClock state to the saved state
Saves the TestClock's current state in an effect which, when run, will restore the TestClock state to the saved state
Attributes
- Source
- TestClock.scala
Sets the current clock time to the specified Instant. Any effects that were scheduled to occur on or before the new time will be run in order.
Sets the current clock time to the specified Instant. Any effects that were scheduled to occur on or before the new time will be run in order.
Attributes
- Source
- TestClock.scala
Sets the time zone to the specified time zone. The clock time in terms of nanoseconds since the epoch will not be adjusted and no scheduled effects will be run as a result of this method.
Sets the time zone to the specified time zone. The clock time in terms of nanoseconds since the epoch will not be adjusted and no scheduled effects will be run as a result of this method.
Attributes
- Source
- TestClock.scala
Semantically blocks the current fiber until the clock time is equal to or greater than the specified duration. Once the clock time is adjusted to on or after the duration, the fiber will automatically be resumed.
Semantically blocks the current fiber until the clock time is equal to or greater than the specified duration. Once the clock time is adjusted to on or after the duration, the fiber will automatically be resumed.
Attributes
- Source
- TestClock.scala
Returns a list of the times at which all queued effects are scheduled to resume.
Returns a list of the times at which all queued effects are scheduled to resume.
Attributes
- Source
- TestClock.scala
Returns a set of all fibers in this test.
Returns the time zone.
Attributes
- Definition Classes
- Source
- TestClock.scala
Inherited methods
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- Product
Attributes
- Inherited from:
- TestClockPlatformSpecific
- Source
- TestClockPlatformSpecific.scala