Package

zio

Permalink

package zio

Linear Supertypes
DurationModule, VersionSpecific, IntersectionTypeCompat, FunctionToLayerSyntax, EitherCompat, BuildFromCompat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. zio
  2. DurationModule
  3. VersionSpecific
  4. IntersectionTypeCompat
  5. FunctionToLayerSyntax
  6. EitherCompat
  7. BuildFromCompat
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type &[+A, +B] = A with B

    Permalink
    Definition Classes
    IntersectionTypeCompat
  2. abstract class =!=[A, B] extends Serializable

    Permalink

    Evidence type A is not equal to type B.

    Evidence type A is not equal to type B.

    Based on https://github.com/milessabin/shapeless.

    Annotations
    @implicitNotFound( "${A} must not be ${B}" )
  3. trait Accessible[R] extends AnyRef

    Permalink

    A simple, macro-less means of creating accessors from Services.

    A simple, macro-less means of creating accessors from Services. Extend the companion object with Accessible[ServiceName], then simply call Companion(_.someMethod), to return a ZIO effect that requires the Service in its environment.

    Example:

    trait FooService {
      def magicNumber: UIO[Int]
      def castSpell(chant: String): UIO[Boolean]
    }
    
    object FooService extends Accessible[FooService]
    
    val example: ZIO[FooService, Nothing, Unit] =
      for {
        int  <- FooService(_.magicNumber)
        bool <- FooService(_.castSpell("Oogabooga!"))
      } yield ()
  4. type BuildFrom[-From, -A, +C] = CanBuildFrom[From, A, C]

    Permalink
    Definition Classes
    BuildFromCompat
  5. implicit class BuildFromOps[From, A, C] extends AnyRef

    Permalink
    Definition Classes
    BuildFromCompat
  6. sealed abstract class CanFail[-E] extends AnyRef

    Permalink

    A value of type CanFail[E] provides implicit evidence that an effect with error type E can fail, that is, that E is not equal to Nothing.

    A value of type CanFail[E] provides implicit evidence that an effect with error type E can fail, that is, that E is not equal to Nothing.

    Annotations
    @implicitNotFound( ... )
  7. abstract class CancelableFuture[+A] extends Future[A] with FutureTransformCompat[A]

    Permalink
  8. type Canceler[-R] = ZIO[R, Nothing, Any]

    Permalink
  9. sealed abstract class Cause[+E] extends Product with Serializable

    Permalink
  10. sealed abstract class Chunk[+A] extends ChunkLike[A] with Serializable

    Permalink

    A Chunk[A] represents a chunk of values of type A.

    A Chunk[A] represents a chunk of values of type A. Chunks are designed are usually backed by arrays, but expose a purely functional, safe interface to the underlying elements, and they become lazy on operations that would be costly with arrays, such as repeated concatenation.

    The implementation of balanced concatenation is based on the one for Conc-Trees in "Conc-Trees for Functional and Parallel Programming" by Aleksandar Prokopec and Martin Odersky. http://aleksandar-prokopec.com/resources/docs/lcpc-conc-trees.pdf

    NOTE: For performance reasons Chunk does not box primitive types. As a result, it is not safe to construct chunks from heterogeneous primitive types.

  11. sealed abstract class ChunkBuilder[A] extends Builder[A, Chunk[A]]

    Permalink

    A ChunkBuilder[A] can build a Chunk[A] given elements of type A.

    A ChunkBuilder[A] can build a Chunk[A] given elements of type A. ChunkBuilder is a mutable data structure that is implemented to efficiently build chunks of unboxed primitives and for compatibility with the Scala collection library.

  12. sealed abstract class ChunkCanBuildFrom[A] extends CanBuildFrom[Chunk[Any], A, Chunk[A]]

    Permalink

    ChunkCanBuildFrom provides implicit evidence that a collection of type Chunk[A] can be built from elements of type A.

    ChunkCanBuildFrom provides implicit evidence that a collection of type Chunk[A] can be built from elements of type A. Since a Chunk[A] can be built from elements of type A for any type A, this implicit evidence always exists. It is used primarily to provide proof that the target type of a collection operation is a Chunk to support high performance implementations of transformation operations for chunks.

  13. trait Clock extends Serializable

    Permalink
  14. trait ComposeLowPriorityImplicits extends AnyRef

    Permalink
  15. trait Console extends Serializable

    Permalink
  16. type Dequeue[+A] = ZQueue[Nothing, Any, Any, Nothing, Nothing, A]

    Permalink
  17. type Duration = java.time.Duration

    Permalink
    Definition Classes
    DurationModule
  18. trait DurationModule extends AnyRef

    Permalink
  19. final class DurationOps extends AnyVal

    Permalink
  20. final class DurationSyntax extends AnyVal

    Permalink
  21. type ERef[+E, A] = ZRef[Any, Any, E, E, A, A]

    Permalink
  22. trait EitherCompat extends AnyRef

    Permalink
  23. implicit final class EitherOps[E, A] extends AnyRef

    Permalink
    Definition Classes
    EitherCompat
  24. type Enqueue[-A] = ZQueue[Any, Nothing, Nothing, Any, A, Any]

    Permalink
  25. sealed abstract class ExecutionStrategy extends AnyRef

    Permalink

    Describes a strategy for evaluating multiple effects, potentially in parallel.

    Describes a strategy for evaluating multiple effects, potentially in parallel. There are three possible execution strategies: Sequential, Parallel, and ParallelN.

  26. abstract class Executor extends ExecutorPlatformSpecific

    Permalink

    An executor is responsible for executing actions.

    An executor is responsible for executing actions. Each action is guaranteed to begin execution on a fresh stack frame.

  27. trait ExecutorPlatformSpecific extends AnyRef

    Permalink
  28. sealed abstract class Exit[+E, +A] extends Product with Serializable

    Permalink

    An Exit[E, A] describes the result of executing an IO value.

    An Exit[E, A] describes the result of executing an IO value. The result is either succeeded with a value A, or failed with a Cause[E].

  29. final case class ExitCode(code: Int) extends Product with Serializable

    Permalink
  30. sealed abstract class Fiber[+E, +A] extends AnyRef

    Permalink

    A fiber is a lightweight thread of execution that never consumes more than a whole thread (but may consume much less, depending on contention and asynchronicity).

    A fiber is a lightweight thread of execution that never consumes more than a whole thread (but may consume much less, depending on contention and asynchronicity). Fibers are spawned by forking ZIO effects, which run concurrently with the parent effect.

    Fibers can be joined, yielding their result to other fibers, or interrupted, which terminates the fiber, safely releasing all resources.

    def parallel[A, B](io1: Task[A], io2: Task[B]): Task[(A, B)] =
      for {
        fiber1 <- io1.fork
        fiber2 <- io2.fork
        a      <- fiber1.join
        b      <- fiber2.join
      } yield (a, b)
  31. final case class FiberFailure(cause: Cause[Any]) extends Throwable with Product with Serializable

    Permalink

    Represents a failure in a fiber.

    Represents a failure in a fiber. This could be caused by some non- recoverable error, such as a defect or system error, by some typed error, or by interruption (or combinations of all of the above).

    This class is used to wrap ZIO failures into something that can be thrown, to better integrate with Scala exception handling.

  32. sealed trait FiberId extends Serializable

    Permalink

    The identity of a Fiber, described by the time it began life, and a monotonically increasing sequence number generated from an atomic counter.

  33. type FiberRef[A] = ZFiberRef[Nothing, Nothing, A, A]

    Permalink
  34. final class FiberRefs extends AnyRef

    Permalink

    FiberRefs is a data type that represents a collection of FiberRef values.

    FiberRefs is a data type that represents a collection of FiberRef values. This allows safely propagating FiberRef values across fiber boundaries, for example between an asynchronous producer and consumer.

  35. implicit final class Function0ToLayerOps[A] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  36. implicit final class Function10ToLayerOps[A, B, C, D, E, F, G, H, I, J, K] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  37. implicit final class Function11ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  38. implicit final class Function12ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  39. implicit final class Function13ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  40. implicit final class Function14ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  41. implicit final class Function15ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  42. implicit final class Function16ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  43. implicit final class Function17ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  44. implicit final class Function18ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  45. implicit final class Function19ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  46. implicit final class Function1ToLayerOps[A, B] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  47. implicit final class Function20ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  48. implicit final class Function21ToLayerOps[A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  49. implicit final class Function2ToLayerOps[A, B, C] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  50. implicit final class Function3ToLayerOps[A, B, C, D] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  51. implicit final class Function4ToLayerOps[A, B, C, D, E] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  52. implicit final class Function5ToLayerOps[A, B, C, D, E, F] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  53. implicit final class Function6ToLayerOps[A, B, C, D, E, F, G] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  54. implicit final class Function7ToLayerOps[A, B, C, D, E, F, G, H] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  55. implicit final class Function8ToLayerOps[A, B, C, D, E, F, G, H, I] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  56. implicit final class Function9ToLayerOps[A, B, C, D, E, F, G, H, I, J] extends AnyRef

    Permalink
    Definition Classes
    FunctionToLayerSyntax
  57. trait FunctionToLayerSyntax extends AnyRef

    Permalink
  58. type Hub[A] = ZHub[Any, Any, Nothing, Nothing, A, A]

    Permalink
  59. type IO[+E, +A] = ZIO[Any, E, A]

    Permalink
  60. sealed abstract class InterruptStatus extends Serializable with Product

    Permalink

    The InterruptStatus of a fiber determines whether or not it can be interrupted.

    The InterruptStatus of a fiber determines whether or not it can be interrupted. The status can change over time in different regions.

  61. trait IsNotIntersection[A] extends Serializable

    Permalink
  62. trait IsNotIntersectionVersionSpecific extends AnyRef

    Permalink
  63. sealed abstract class IsSubtypeOfError[-A, +B] extends (A) ⇒ B with Serializable

    Permalink
    Annotations
    @implicitNotFound( ... )
  64. sealed abstract class IsSubtypeOfOutput[-A, +B] extends (A) ⇒ B with Serializable

    Permalink
    Annotations
    @implicitNotFound( ... )
  65. type Layer[+E, +ROut] = ZLayer[Any, E, ROut]

    Permalink
  66. type LightTypeTag = izumi.reflect.macrortti.LightTypeTag

    Permalink
    Definition Classes
    VersionSpecific
  67. final case class LogLevel(ordinal: Int, label: String, syslog: Int) extends ZIOAspect[Nothing, Any, Nothing, Any, Nothing, Any] with Product with Serializable

    Permalink

    LogLevel represents the log level associated with an individual logging operation.

    LogLevel represents the log level associated with an individual logging operation. Log levels are used both to describe the granularity (or importance) of individual log statements, as well as to enable tuning verbosity of log output.

    ordinal

    The priority of the log message. Larger values indicate higher priority.

    label

    A label associated with the log level.

    syslog

    The syslog severity level of the log level. LogLevel values are ZIO aspects, and therefore can be used with aspect syntax.

    myEffect @@ LogLevel.Info
  68. final case class LogSpan(label: String, startTime: Long) extends Product with Serializable

    Permalink
  69. type Managed[+E, +A] = ZManaged[Any, E, A]

    Permalink
  70. final case class MetricLabel(key: String, value: String) extends Product with Serializable

    Permalink

    A MetricLabel represents a key value pair that allows analyzing metrics at an additional level of granularity.

    A MetricLabel represents a key value pair that allows analyzing metrics at an additional level of granularity. For example if a metric tracks the response time of a service labels could be used to create separate versions that track response times for different clients.

  71. sealed abstract class NeedsEnv[+R] extends Serializable

    Permalink

    A value of type NeedsEnv[R] provides implicit evidence that an effect with environment type R needs an environment, that is, that R is not equal to Any.

    A value of type NeedsEnv[R] provides implicit evidence that an effect with environment type R needs an environment, that is, that R is not equal to Any.

    Annotations
    @implicitNotFound( ... )
  72. final class NonEmptyChunk[+A] extends AnyRef

    Permalink

    A NonEmptyChunk is a Chunk that is guaranteed to contain at least one element.

    A NonEmptyChunk is a Chunk that is guaranteed to contain at least one element. As a result, operations which would not be safe when performed on Chunk, such as head or reduce, are safe when performed on NonEmptyChunk. Operations on NonEmptyChunk which could potentially return an empty chunk will return a Chunk instead.

  73. final class Promise[E, A] extends Serializable

    Permalink

    A promise represents an asynchronous variable, of zio.IO type, that can be set exactly once, with the ability for an arbitrary number of fibers to suspend (by calling await) and automatically resume when the variable is set.

    A promise represents an asynchronous variable, of zio.IO type, that can be set exactly once, with the ability for an arbitrary number of fibers to suspend (by calling await) and automatically resume when the variable is set.

    Promises can be used for building primitive actions whose completions require the coordinated action of multiple fibers, and for building higher-level concurrent or asynchronous structures.

    for {
      promise <- Promise.make[Nothing, Int]
      _       <- promise.succeed(42).delay(1.second).fork
      value   <- promise.await // Resumes when forked fiber completes promise
    } yield value
  74. type Queue[A] = ZQueue[Any, Any, Nothing, Nothing, A, A]

    Permalink
  75. type RIO[-R, +A] = ZIO[R, Throwable, A]

    Permalink
  76. type RLayer[-RIn, +ROut] = ZLayer[RIn, Throwable, ROut]

    Permalink
  77. type RManaged[-R, +A] = ZManaged[R, Throwable, A]

    Permalink
  78. trait Random extends Serializable

    Permalink
  79. type Ref[A] = ZRef[Any, Any, Nothing, Nothing, A, A]

    Permalink
  80. final case class Reservation[-R, +E, +A](acquire: ZIO[R, E, A], release: (Exit[Any, Any]) ⇒ URIO[R, Any]) extends Product with Serializable

    Permalink

    A Reservation[-R, +E, +A] encapsulates resource acquisition and disposal without specifying when or how that resource might be used.

    A Reservation[-R, +E, +A] encapsulates resource acquisition and disposal without specifying when or how that resource might be used.

    See ZManaged#reserve and ZIO#reserve for details of usage.

  81. trait Runtime[+R] extends AnyRef

    Permalink

    A Runtime[R] is capable of executing tasks within an environment R.

  82. final case class RuntimeConfig(blockingExecutor: Executor, executor: Executor, fatal: (Throwable) ⇒ Boolean, reportFatal: (Throwable) ⇒ Nothing, supervisor: Supervisor[Any], logger: ZLogger[String, Any], runtimeConfigFlags: RuntimeConfigFlags) extends Product with Serializable

    Permalink

    A RuntimeConfig provides the minimum capabilities necessary to bootstrap execution of ZIO tasks.

  83. final case class RuntimeConfigAspect(customize: (RuntimeConfig) ⇒ RuntimeConfig) extends (RuntimeConfig) ⇒ RuntimeConfig with Product with Serializable

    Permalink
  84. sealed trait RuntimeConfigFlag extends AnyRef

    Permalink
  85. final case class RuntimeConfigFlags(flags: Set[RuntimeConfigFlag]) extends Product with Serializable

    Permalink
  86. trait Schedule[-Env, -In, +Out] extends Serializable

    Permalink

    A Schedule[Env, In, Out] defines a recurring schedule, which consumes values of type In, and which returns values of type Out.

    A Schedule[Env, In, Out] defines a recurring schedule, which consumes values of type In, and which returns values of type Out.

    Schedules are defined as a possibly infinite set of intervals spread out over time. Each interval defines a window in which recurrence is possible.

    When schedules are used to repeat or retry effects, the starting boundary of each interval produced by a schedule is used as the moment when the effect will be executed again.

    Schedules compose in the following primary ways:

    * Union. This performs the union of the intervals of two schedules. * Intersection. This performs the intersection of the intervals of two schedules. * Sequence. This concatenates the intervals of one schedule onto another.

    In addition, schedule inputs and outputs can be transformed, filtered (to terminate a schedule early in response to some input or output), and so forth.

    A variety of other operators exist for transforming and combining schedules, and the companion object for Schedule contains all common types of schedules, both for performing retrying, as well as performing repetition.

  87. abstract class Scheduler extends AnyRef

    Permalink
  88. type Semaphore = TSemaphore

    Permalink
  89. abstract class Supervisor[+A] extends AnyRef

    Permalink

    A Supervisor[A] is allowed to supervise the launching and termination of fibers, producing some visible value of type A from the supervision.

  90. trait System extends Serializable

    Permalink
  91. type Tag[A] = izumi.reflect.Tag[A]

    Permalink
    Definition Classes
    VersionSpecific
  92. type TagK[F[_]] = HKTag[AnyRef { type Arg[A] = F[A] }]

    Permalink
    Definition Classes
    VersionSpecific
  93. type TagK10[F[_, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9] }]

    Permalink
    Definition Classes
    VersionSpecific
  94. type TagK11[F[_, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10] }]

    Permalink
    Definition Classes
    VersionSpecific
  95. type TagK12[F[_, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11] }]

    Permalink
    Definition Classes
    VersionSpecific
  96. type TagK13[F[_, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12] }]

    Permalink
    Definition Classes
    VersionSpecific
  97. type TagK14[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13] }]

    Permalink
    Definition Classes
    VersionSpecific
  98. type TagK15[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14] }]

    Permalink
    Definition Classes
    VersionSpecific
  99. type TagK16[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15] }]

    Permalink
    Definition Classes
    VersionSpecific
  100. type TagK17[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16] }]

    Permalink
    Definition Classes
    VersionSpecific
  101. type TagK18[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17] }]

    Permalink
    Definition Classes
    VersionSpecific
  102. type TagK19[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18] }]

    Permalink
    Definition Classes
    VersionSpecific
  103. type TagK20[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19] }]

    Permalink
    Definition Classes
    VersionSpecific
  104. type TagK21[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20] }]

    Permalink
    Definition Classes
    VersionSpecific
  105. type TagK22[F[_, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15, A16, A17, A18, A19, A20, A21] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8,A9,A10,A11,A12,A13,A14,A15,A16,A17,A18,A19,A20,A21] }]

    Permalink
    Definition Classes
    VersionSpecific
  106. type TagK3[F[_, _, _]] = HKTag[AnyRef { type Arg[A, B, C] = F[A,B,C] }]

    Permalink
    Definition Classes
    VersionSpecific
  107. type TagK4[F[_, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3] = F[A0,A1,A2,A3] }]

    Permalink
    Definition Classes
    VersionSpecific
  108. type TagK5[F[_, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4] = F[A0,A1,A2,A3,A4] }]

    Permalink
    Definition Classes
    VersionSpecific
  109. type TagK6[F[_, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5] = F[A0,A1,A2,A3,A4,A5] }]

    Permalink
    Definition Classes
    VersionSpecific
  110. type TagK7[F[_, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6] = F[A0,A1,A2,A3,A4,A5,A6] }]

    Permalink
    Definition Classes
    VersionSpecific
  111. type TagK8[F[_, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7] = F[A0,A1,A2,A3,A4,A5,A6,A7] }]

    Permalink
    Definition Classes
    VersionSpecific
  112. type TagK9[F[_, _, _, _, _, _, _, _, _]] = HKTag[AnyRef { type Arg[A0, A1, A2, A3, A4, A5, A6, A7, A8] = F[A0,A1,A2,A3,A4,A5,A6,A7,A8] }]

    Permalink
    Definition Classes
    VersionSpecific
  113. type TagKK[F[_, _]] = HKTag[AnyRef { type Arg[A, B] = F[A,B] }]

    Permalink
    Definition Classes
    VersionSpecific
  114. type Task[+A] = ZIO[Any, Throwable, A]

    Permalink
  115. type TaskLayer[+ROut] = ZLayer[Any, Throwable, ROut]

    Permalink
  116. type TaskManaged[+A] = ZManaged[Any, Throwable, A]

    Permalink
  117. type UIO[+A] = ZIO[Any, Nothing, A]

    Permalink
  118. type ULayer[+ROut] = ZLayer[Any, Nothing, ROut]

    Permalink
  119. type UManaged[+A] = ZManaged[Any, Nothing, A]

    Permalink
  120. type URIO[-R, +A] = ZIO[R, Nothing, A]

    Permalink
  121. type URLayer[-RIn, +ROut] = ZLayer[RIn, Nothing, ROut]

    Permalink
  122. type URManaged[-R, +A] = ZManaged[R, Nothing, A]

    Permalink
  123. trait Unzippable[A, B] extends AnyRef

    Permalink
  124. trait UnzippableLowPriority1 extends UnzippableLowPriority2

    Permalink
  125. trait UnzippableLowPriority2 extends UnzippableLowPriority3

    Permalink
  126. trait UnzippableLowPriority3 extends AnyRef

    Permalink
  127. trait ZCompose[+LeftLower, -LeftUpper, LeftOut[In], +RightLower, -RightUpper, RightOut[In]] extends AnyRef

    Permalink
  128. type ZDequeue[-R, +E, +A] = ZQueue[Nothing, R, Any, E, Nothing, A]

    Permalink

    A queue that can only be dequeued.

  129. type ZEnqueue[-R, +E, -A] = ZQueue[R, Nothing, E, Any, A, Any]

    Permalink

    A queue that can only be enqueued.

  130. type ZEnv = Clock with Console with System with Random

    Permalink
  131. final class ZEnvironment[+R] extends Serializable

    Permalink
  132. sealed abstract class ZFiberRef[+EA, +EB, -A, +B] extends Serializable

    Permalink

    A FiberRef is ZIO's equivalent of Java's ThreadLocal.

    A FiberRef is ZIO's equivalent of Java's ThreadLocal. The value of a FiberRef is automatically propagated to child fibers when they are forked and merged back in to the value of the parent fiber after they are joined.

    for {
      fiberRef <- FiberRef.make("Hello world!")
      child    <- fiberRef.set("Hi!).fork
      result   <- child.join
    } yield result

    Here result will be equal to "Hi!" since changed made by a child fiber are merged back in to the value of the parent fiber on join.

    By default the value of the child fiber will replace the value of the parent fiber on join but you can specify your own logic for how values should be merged.

    for {
      fiberRef <- FiberRef.make(0, math.max)
      child    <- fiberRef.update(_ + 1).fork
      _        <- fiberRef.update(_ + 2)
      _        <- child.join
      value    <- fiberRef.get
    } yield value

    Here value will be 2 as the value in the joined fiber is lower and we specified max as our combining function.

  133. sealed abstract class ZHub[-RA, -RB, +EA, +EB, -A, +B] extends Serializable

    Permalink

    A ZHub[RA, RB, EA, EB, A, B] is an asynchronous message hub.

    A ZHub[RA, RB, EA, EB, A, B] is an asynchronous message hub. Publishers can publish messages of type A to the hub and subscribers can subscribe to take messages of type B from the hub. Publishing messages can require an environment of type RA and fail with an error of type EA. Taking messages can require an environment of type RB and fail with an error of type EB.

  134. sealed trait ZIO[-R, +E, +A] extends Serializable with ZIOPlatformSpecific[R, E, A] with ZIOVersionSpecific[R, E, A]

    Permalink

    A ZIO[R, E, A] value is an immutable value that lazily describes a workflow or job.

    A ZIO[R, E, A] value is an immutable value that lazily describes a workflow or job. The workflow requires some environment R, and may fail with an error of type E, or succeed with a value of type A.

    These lazy workflows, referred to as _effects_, can be informally thought of as functions in the form:

    R => Either[E, A]

    ZIO effects model resourceful interaction with the outside world, including synchronous, asynchronous, concurrent, and parallel interaction.

    ZIO effects use a fiber-based concurrency model, with built-in support for scheduling, fine-grained interruption, structured concurrency, and high scalability.

    To run an effect, you need a Runtime, which is capable of executing effects. Runtimes bundle a thread pool together with the environment that effects need.

  135. trait ZIOApp extends ZIOAppPlatformSpecific

    Permalink

    An entry point for a ZIO application that allows sharing layers between applications.

    An entry point for a ZIO application that allows sharing layers between applications. For a simpler version that uses the default ZIO environment see ZIOAppDefault.

  136. final case class ZIOAppArgs(getArgs: Chunk[String]) extends Product with Serializable

    Permalink

    A service that contains command-line arguments of an application.

  137. trait ZIOAppDefault extends ZIOApp

    Permalink

    The entry point for a ZIO application.

    The entry point for a ZIO application.

    import zio.ZIOAppDefault
    import zio.Console._
    
    object MyApp extends ZIOAppDefault {
    
      def run =
        for {
          _ <- printLine("Hello! What is your name?")
          n <- readLine
          _ <- printLine("Hello, " + n + ", good to meet you!")
        } yield ()
    }
  138. trait ZIOAppPlatformSpecific extends AnyRef

    Permalink
  139. trait ZIOAspect[+LowerR, -UpperR, +LowerE, -UpperE, +LowerA, -UpperA] extends AnyRef

    Permalink
  140. sealed trait ZIOMetric[-A] extends ZIOAspect[Nothing, Any, Nothing, Any, Nothing, A]

    Permalink

    A ZIOMetric is able to add collection of metrics to a ZIO effect without changing its environment or error types.

    A ZIOMetric is able to add collection of metrics to a ZIO effect without changing its environment or error types. Aspects are the idiomatic way of adding collection of metrics to effects.

  141. abstract class ZInputStream extends AnyRef

    Permalink
  142. sealed abstract class ZLayer[-RIn, +E, +ROut] extends AnyRef

    Permalink

    A ZLayer[E, A, B] describes how to build one or more services in your application.

    A ZLayer[E, A, B] describes how to build one or more services in your application. Services can be injected into effects via ZIO#inject. Effects can require services via ZIO.service."

    Layer can be thought of as recipes for producing bundles of services, given their dependencies (other services).

    Construction of services can be effectful and utilize resources that must be acquired and safely released when the services are done being utilized.

    By default layers are shared, meaning that if the same layer is used twice the layer will only be allocated a single time.

    Because of their excellent composition properties, layers are the idiomatic way in ZIO to create services that depend on other services.

  143. trait ZLogger[-Message, +Output] extends AnyRef

    Permalink
  144. sealed abstract class ZManaged[-R, +E, +A] extends ZManagedVersionSpecific[R, E, A] with Serializable

    Permalink

    A ZManaged[R, E, A] is a managed resource of type A, which may be used by invoking the use method of the resource.

    A ZManaged[R, E, A] is a managed resource of type A, which may be used by invoking the use method of the resource. The resource will be automatically acquired before the resource is used, and automatically released after the resource is used.

    Resources do not survive the scope of use, meaning that if you attempt to capture the resource, leak it from use, and then use it after the resource has been consumed, the resource will not be valid anymore and may fail with some checked error, as per the type of the functions provided by the resource.

  145. trait ZManagedAspect[+LowerR, -UpperR, +LowerE, -UpperE, +LowerA, -UpperA] extends AnyRef

    Permalink
  146. abstract class ZOutputStream extends AnyRef

    Permalink
  147. trait ZPool[+Error, Item] extends AnyRef

    Permalink

    A ZPool[E, A] is a pool of items of type A, each of which may be associated with the acquisition and release of resources.

    A ZPool[E, A] is a pool of items of type A, each of which may be associated with the acquisition and release of resources. An attempt to get an item A from a pool may fail with an error of type E.

  148. abstract class ZQueue[-RA, -RB, +EA, +EB, -A, +B] extends Serializable

    Permalink

    A ZQueue[RA, RB, EA, EB, A, B] is a lightweight, asynchronous queue into which values of type A can be enqueued and of which elements of type B can be dequeued.

    A ZQueue[RA, RB, EA, EB, A, B] is a lightweight, asynchronous queue into which values of type A can be enqueued and of which elements of type B can be dequeued. The queue's enqueueing operations may utilize an environment of type RA and may fail with errors of type EA. The dequeueing operations may utilize an environment of type RB and may fail with errors of type EB.

  149. sealed abstract class ZRef[-RA, -RB, +EA, +EB, -A, +B] extends Serializable

    Permalink

    A ZRef[RA, RB, EA, EB, A, B] is a polymorphic, purely functional description of a mutable reference.

    A ZRef[RA, RB, EA, EB, A, B] is a polymorphic, purely functional description of a mutable reference. The fundamental operations of a ZRef are set and get. set takes a value of type A and sets the reference to a new value, requiring an environment of type RA and potentially failing with an error of type EA. get gets the current value of the reference and returns a value of type B, requiring an environment of type RB and potentially failing with an error of type EB.

    When the error and value types of the ZRef are unified, that is, it is a ZRef[R, R, E, E, A, A], the ZRef also supports atomic modify and update operations. All operations are guaranteed to be safe for concurrent access.

    By default, ZRef is implemented in terms of compare and swap operations for maximum performance and does not support performing effects within update operations. If you need to perform effects within update operations you can create a ZRef.Synchronized, a specialized type of ZRef that supports performing effects within update operations at some cost to performance. In this case writes will semantically block other writers, while multiple readers can read simultaneously.

    ZRef.Synchronized also supports composing multiple ZRef.Synchronized values together to form a single ZRef.Synchronized value that can be atomically updated using the zip operator. In this case reads and writes will semantically block other readers and writers.

    NOTE: While ZRef provides the functional equivalent of a mutable reference, the value inside the ZRef should normally be immutable since compare and swap operations are not safe for mutable values that do not support concurrent access. If you do need to use a mutable value ZRef.Synchronized will guarantee that access to the value is properly synchronized.

  150. sealed abstract class ZScope[+A] extends AnyRef

    Permalink

    A ZScope[A] is a value that allows adding finalizers identified by a key.

    A ZScope[A] is a value that allows adding finalizers identified by a key. Scopes are closed with a value of type A, which is provided to all the finalizers when the scope is released.

    For safety reasons, this interface has no method to close a scope. Rather, an open scope may be required with ZScope.make, which returns a function that can close a scope. This allows scopes to be safely passed around without fear they will be accidentally closed.

  151. sealed trait ZState[S] extends AnyRef

    Permalink

    ZState[S] models a value of type S that can be read from and written to during the execution of an effect.

    ZState[S] models a value of type S that can be read from and written to during the execution of an effect. The idiomatic way to work with ZState is as part of the environment using operators defined on ZIO. For example:

    final case class MyState(counter: Int)
    
    for {
      _     <- ZIO.updateState[MyState](state => state.copy(counter = state.counter + 1))
      count <- ZIO.getStateWith[MyState](_.counter)
    } yield count

    Because ZState is typically used as part of the environment, it is recommended to define your own state type S such as MyState above rather than using a type such as Int to avoid the risk of ambiguity.

    To run an effect that depends on some state, create the initial state with the make constructor and then use toLayer to convert it into a service builder that you can provide along with your application's other services.

  152. final case class ZTrace(fiberId: FiberId, stackTrace: Chunk[ZTraceElement]) extends Product with Serializable

    Permalink
  153. type ZTraceElement = Type with Traced

    Permalink
  154. trait Zippable[-A, -B] extends AnyRef

    Permalink
  155. trait ZippableLowPriority1 extends ZippableLowPriority2

    Permalink
  156. trait ZippableLowPriority2 extends ZippableLowPriority3

    Permalink
  157. trait ZippableLowPriority3 extends AnyRef

    Permalink
  158. trait App extends ZApp[ZEnv] with BootstrapRuntime

    Permalink

    The entry point for a purely-functional application on the JVM.

    The entry point for a purely-functional application on the JVM.

    import zio.App
    import zio.Console._
    
    object MyApp extends App {
    
      final def run(args: List[String]) =
        myAppLogic.exitCode
    
      val myAppLogic =
        for {
          _ <- printLine("Hello! What is your name?")
          n <- readLine
          _ <- printLine("Hello, " + n + ", good to meet you!")
        } yield ()
    }
    Annotations
    @deprecated
    Deprecated

    (Since version Use zio.ZIOAppDefault) 2.0.0

  159. trait BootstrapRuntime extends ZBootstrapRuntime[ZEnv]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version Use zio.Runtime) 2.0.0

  160. type ERefM[+E, A] = Synchronized[Any, Any, E, E, A, A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ERef.Synchronized

  161. trait ManagedApp extends BootstrapRuntime

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version Use zio.ZIOApp and use the managed inside run) 2.0.0

  162. type RefM[A] = Synchronized[Any, Any, Nothing, Nothing, A, A]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use Ref.Synchronized

  163. trait ZApp[R] extends ZBootstrapRuntime[R]

    Permalink

    The entry point for a purely-functional application on the JVM.

    The entry point for a purely-functional application on the JVM.

    import zio.ZApp
    import zio.Console._
    
    object MyApp extends ZApp[Console] {
    
      def environment: Console = ConsoleLive
    
      final def run(args: List[String]) =
        myAppLogic.exitCode
    
      def myAppLogic =
        for {
          _ <- printLine("Hello! What is your name?")
          n <- readLine
          _ <- printLine("Hello, " + n + ", good to meet you!")
        } yield ()
    }
    Annotations
    @deprecated
    Deprecated

    (Since version Use zio.ZIOApp) 2.0.0

  164. trait ZBootstrapRuntime[R] extends Runtime[R]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version Use Runtime) 2.0.0

  165. type ZRefM[-RA, -RB, +EA, +EB, -A, +B] = Synchronized[RA, RB, EA, EB, A, B]

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ZRef.Synchronized

Value Members

  1. object =!= extends Serializable

    Permalink
  2. object Accessible

    Permalink
  3. object BuildInfo extends Product with Serializable

    Permalink

    This object was generated by sbt-buildinfo.

  4. object CanFail extends CanFail[Any]

    Permalink
  5. object Cause extends Serializable

    Permalink
  6. object Chunk extends IndexedSeqFactory[Chunk] with ChunkFactory with ChunkPlatformSpecific with Serializable

    Permalink
  7. object ChunkBuilder

    Permalink
  8. object ChunkCanBuildFrom

    Permalink
  9. object ChunkLike

    Permalink
  10. object Clock extends ClockPlatformSpecific with Serializable

    Permalink
  11. object Console extends Serializable

    Permalink
  12. object Duration

    Permalink
  13. val ERef: ZRef.type

    Permalink
  14. object ExecutionStrategy

    Permalink
  15. object Executor extends DefaultExecutors with Serializable

    Permalink
  16. object Exit extends Serializable

    Permalink
  17. object ExitCode extends Serializable

    Permalink
  18. object Fiber extends FiberPlatformSpecific

    Permalink
  19. object FiberId extends Serializable

    Permalink
  20. val FiberRef: ZFiberRef.type

    Permalink
  21. object FiberRefs

    Permalink
  22. val Hub: ZHub.type

    Permalink
  23. object IO

    Permalink
  24. object InterruptStatus extends Serializable

    Permalink
  25. object IsNotIntersection extends IsNotIntersectionVersionSpecific with Serializable

    Permalink
  26. object IsSubtypeOfError extends Serializable

    Permalink
  27. object IsSubtypeOfOutput extends Serializable

    Permalink
  28. object LogLevel extends Serializable

    Permalink
  29. val Managed: ZManaged.type

    Permalink
  30. object NeedsEnv extends NeedsEnv[Nothing]

    Permalink
  31. object NonEmptyChunk

    Permalink
  32. object Promise extends Serializable

    Permalink
  33. val Queue: ZQueue.type

    Permalink
  34. object RIO

    Permalink
  35. object Random extends Serializable

    Permalink
  36. object Ref extends Serializable

    Permalink
  37. object Runtime

    Permalink
  38. object RuntimeConfig extends RuntimeConfigPlatformSpecific with Serializable

    Permalink
  39. object RuntimeConfigAspect extends ((RuntimeConfig) ⇒ RuntimeConfig) ⇒ RuntimeConfigAspect with Serializable

    Permalink
  40. object RuntimeConfigFlag

    Permalink
  41. object RuntimeConfigFlags extends Serializable

    Permalink
  42. object Schedule extends Serializable

    Permalink
  43. object Scheduler

    Permalink
  44. object Semaphore

    Permalink
  45. object Supervisor

    Permalink
  46. object System extends Serializable

    Permalink
  47. lazy val Tag: izumi.reflect.Tag.type

    Permalink
    Definition Classes
    VersionSpecific
  48. lazy val TagK: izumi.reflect.TagK.type

    Permalink
    Definition Classes
    VersionSpecific
  49. lazy val TagK3: izumi.reflect.TagK3.type

    Permalink
    Definition Classes
    VersionSpecific
  50. lazy val TagKK: izumi.reflect.TagKK.type

    Permalink
    Definition Classes
    VersionSpecific
  51. object Task extends TaskPlatformSpecific

    Permalink
  52. object UIO

    Permalink
  53. object URIO

    Permalink
  54. object Unzippable extends UnzippableLowPriority1

    Permalink
  55. object ZCompose extends ComposeLowPriorityImplicits

    Permalink
  56. object ZEnv

    Permalink
  57. object ZEnvironment extends Serializable

    Permalink
  58. object ZFiberRef extends Serializable

    Permalink
  59. object ZHub extends Serializable

    Permalink
  60. object ZIO extends ZIOCompanionPlatformSpecific with Serializable

    Permalink
  61. object ZIOApp

    Permalink
  62. object ZIOAppArgs extends Serializable

    Permalink
  63. object ZIOAppDefault

    Permalink
  64. object ZIOAspect

    Permalink
  65. object ZIOMetric

    Permalink
  66. object ZInputStream

    Permalink
  67. object ZLayer extends ZLayerCompanionVersionSpecific

    Permalink
  68. object ZLogger

    Permalink
  69. object ZManaged extends ZManagedPlatformSpecific with Serializable

    Permalink
  70. object ZOutputStream

    Permalink
  71. object ZPool

    Permalink
  72. object ZQueue extends Serializable

    Permalink
  73. object ZRef extends Serializable

    Permalink
  74. object ZScope

    Permalink
  75. object ZState

    Permalink
  76. object ZTrace extends Serializable

    Permalink
  77. object ZTraceElement

    Permalink
  78. object Zippable extends ZippableLowPriority1

    Permalink
  79. package concurrent

    Permalink
  80. implicit def duration2DurationOps(duration: Duration): DurationOps

    Permalink
    Definition Classes
    DurationModule
  81. implicit def durationInt(n: Int): DurationSyntax

    Permalink
    Definition Classes
    DurationModule
  82. implicit def durationLong(n: Long): DurationSyntax

    Permalink
    Definition Classes
    DurationModule
  83. implicit val durationOrdering: Ordering[Duration]

    Permalink
    Definition Classes
    DurationModule
  84. package internal

    Permalink
  85. package metrics

    Permalink
  86. package stm

    Permalink

Deprecated Value Members

  1. object RefM

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use Ref.Synchronized

  2. object ZRefM

    Permalink
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use ZRef.Synchronized

Inherited from DurationModule

Inherited from VersionSpecific

Inherited from IntersectionTypeCompat

Inherited from FunctionToLayerSyntax

Inherited from EitherCompat

Inherited from BuildFromCompat

Inherited from AnyRef

Inherited from Any

Ungrouped