final case class Test(clockState: Ref[Data], live: Live.Service, annotations: Annotations.Service, warningState: RefM[WarningData]) extends clock.Clock.Service with Service with Product with Serializable
- Alphabetic
- By Inheritance
- Test
- Product
- Equals
- Service
- Restorable
- Service
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new Test(clockState: Ref[Data], live: Live.Service, annotations: Annotations.Service, warningState: RefM[WarningData])
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def adjust(duration: Duration): UIO[Unit]
Increments the current clock time by the specified duration.
- val annotations: Annotations.Service
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- val clockState: Ref[Data]
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def currentDateTime: UIO[OffsetDateTime]
Returns the current clock time as an
OffsetDateTime.Returns the current clock time as an
OffsetDateTime.- Definition Classes
- Test → Service
- def currentTime(unit: TimeUnit): UIO[Long]
Returns the current clock time in the specified time unit.
Returns the current clock time in the specified time unit.
- Definition Classes
- Test → Service
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def instant: UIO[Instant]
- Definition Classes
- Service
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val live: Live.Service
- def localDateTime: IO[DateTimeException, LocalDateTime]
- Definition Classes
- Service
- val nanoTime: UIO[Long]
Returns the current clock time in nanoseconds.
Returns the current clock time in nanoseconds.
- Definition Classes
- Test → Service
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val save: UIO[UIO[Unit]]
Saves the
TestClock's current state in an effect which, when run, will restore theTestClockstate to the saved stateSaves the
TestClock's current state in an effect which, when run, will restore theTestClockstate to the saved state- Definition Classes
- Test → Restorable
- def setDateTime(dateTime: OffsetDateTime): UIO[Unit]
Sets the current clock time to the specified
OffsetDateTime. - def setTime(duration: Duration): UIO[Unit]
Sets the current clock time to the specified time in terms of duration since the epoch.
- def setTimeZone(zone: ZoneId): UIO[Unit]
Sets the time zone to the specified time zone.
- def sleep(duration: Duration): UIO[Unit]
Semantically blocks the current fiber until the clock time is equal to or greater than the specified duration.
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.
- Definition Classes
- Test → Service
- lazy val sleeps: UIO[List[Duration]]
Returns a list of the times at which all queued effects are scheduled to resume.
- def supervisedFibers: UIO[SortedSet[Fiber.Runtime[Any, Any]]]
Returns a set of all fibers in this test.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- lazy val timeZone: UIO[ZoneId]
Returns the time zone.
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- val warningState: RefM[WarningData]