Object/Trait

zio

Clock

Related Docs: trait Clock | package zio

Permalink

object Clock extends ClockPlatformSpecific with Serializable

Linear Supertypes
Serializable, Serializable, ClockPlatformSpecific, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Clock
  2. Serializable
  3. Serializable
  4. ClockPlatformSpecific
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val any: ZLayer[Has[Clock], Nothing, Has[Clock]]

    Permalink
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. val currentDateTime: URIO[Has[Clock], OffsetDateTime]

    Permalink

    Get the current time, represented in the current timezone.

  8. def currentTime(unit: ⇒ TimeUnit): URIO[Has[Clock], Long]

    Permalink

    Returns the current time, relative to the Unix epoch.

  9. def driver[Env, In, Out](schedule: Schedule[Env, In, Out]): URIO[Has[Clock], Driver[Env, In, Out]]

    Permalink
  10. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  15. val instant: ZIO[Has[Clock], Nothing, Instant]

    Permalink
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. val live: Layer[Nothing, Has[Clock]]

    Permalink
  18. val nanoTime: URIO[Has[Clock], Long]

    Permalink

    Returns the system nano time, which is not relative to any date.

  19. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  22. def repeat[R, R1 <: R, E, A, B](zio: ZIO[R, E, A])(schedule: Schedule[R1, A, B]): ZIO[R1 with Has[Clock], E, B]

    Permalink

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure.

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure. Scheduled recurrences are in addition to the first execution, so that io.repeat(Schedule.once) yields an effect that executes io, and then if that succeeds, executes io an additional time.

  23. final def repeatOrElse[R, R1 <: R, E, E2, A, B](zio: ZIO[R, E, A])(schedule: Schedule[R1, A, B], orElse: (E, Option[B]) ⇒ ZIO[R1, E2, B]): ZIO[R1 with Has[Clock], E2, B]

    Permalink

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure, at which point, the failure value and schedule output are passed to the specified handler.

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure, at which point, the failure value and schedule output are passed to the specified handler.

    Scheduled recurrences are in addition to the first execution, so that io.repeat(Schedule.once) yields an effect that executes io, and then if that succeeds, executes io an additional time.

  24. final def repeatOrElseEither[R, R1 <: R, E, E2, A, B, C](zio: ZIO[R, E, A])(schedule: Schedule[R1, A, B], orElse: (E, Option[B]) ⇒ ZIO[R1, E2, C]): ZIO[R1 with Has[Clock], E2, Either[C, B]]

    Permalink

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure, at which point, the failure value and schedule output are passed to the specified handler.

    Returns a new effect that repeats this effect according to the specified schedule or until the first failure, at which point, the failure value and schedule output are passed to the specified handler.

    Scheduled recurrences are in addition to the first execution, so that io.repeat(Schedule.once) yields an effect that executes io, and then if that succeeds, executes io an additional time.

  25. final def retry[R, R1 <: R, E, A, S](zio: ZIO[R, E, A])(policy: Schedule[R1, E, S])(implicit ev: CanFail[E]): ZIO[R1 with Has[Clock], E, A]

    Permalink

    Retries with the specified retry policy.

    Retries with the specified retry policy. Retries are done following the failure of the original io (up to a fixed maximum with once or recurs for example), so that that io.retry(Schedule.once) means "execute io and in case of failure, try again once".

  26. final def retryOrElse[R, R1 <: R, E, E1, A, A1 >: A, S](zio: ZIO[R, E, A])(policy: Schedule[R1, E, S], orElse: (E, S) ⇒ ZIO[R1, E1, A1])(implicit ev: CanFail[E]): ZIO[R1 with Has[Clock], E1, A1]

    Permalink

    Retries with the specified schedule, until it fails, and then both the value produced by the schedule together with the last error are passed to the recovery function.

  27. final def retryOrElseEither[R, R1 <: R, E, E1, A, B, Out](zio: ZIO[R, E, A])(schedule: Schedule[R1, E, Out], orElse: (E, Out) ⇒ ZIO[R1, E1, B])(implicit ev: CanFail[E]): ZIO[R1 with Has[Clock], E1, Either[B, A]]

    Permalink

    Returns an effect that retries this effect with the specified schedule when it fails, until the schedule is done, then both the value produced by the schedule together with the last error are passed to the specified recovery function.

  28. final def schedule[R, R1 <: R, E, A, B](zio: ZIO[R, E, A])(schedule: Schedule[R1, Any, B]): ZIO[R1 with Has[Clock], E, B]

    Permalink

    Runs this effect according to the specified schedule.

    Runs this effect according to the specified schedule.

    See scheduleFrom for a variant that allows the schedule's decision to depend on the result of this effect.

  29. final def scheduleFrom[R, R1 <: R, E, A, A1 >: A, B](zio: ZIO[R, E, A])(a: A1)(schedule: Schedule[R1, A1, B]): ZIO[R1 with Has[Clock], E, B]

    Permalink

    Runs this effect according to the specified schedule starting from the specified input value.

  30. def sleep(duration: ⇒ zio.Duration): URIO[Has[Clock], Unit]

    Permalink

    Sleeps for the specified duration.

    Sleeps for the specified duration. This is always asynchronous.

  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from ClockPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped