Skip to main content
Version: 2.x

Core Data Types

In this section we are going to talk about the basic data types that are required to build a ZIO application:

  • ZIO โ€” ZIO is a value that models an effectful program, which might fail or succeed.
    • UIO โ€” UIO[A] is a type alias for ZIO[Any, Nothing, A].
    • URIO โ€” URIO[R, A] is a type alias for ZIO[R, Nothing, A].
    • Task โ€” Task[A] is a type alias for ZIO[Any, Throwable, A].
    • RIO โ€” RIO[R, A] is a type alias for ZIO[R, Throwable, A].
    • IO โ€” IO[E, A] is a type alias for ZIO[Any, E, A].
  • ZIOApp โ€” ZIOApp and the ZIOAppDefault are entry points for ZIO applications.
  • Runtime โ€” Runtime[R] is capable of executing tasks within an environment R.
  • Exit โ€” Exit[E, A] describes the result of executing an IO value.
  • Cause โ€” Cause[E] is a description of a full story of a fiber failure.

ZIO Chat

๐ŸŒŸ Greetings from ZIO Chat! ๐ŸŒŸ Have questions about ZIO? Look no further! I'm here to be your ZIO guru. Whether you're a seasoned pro or just starting out, I've got answers tailored just for you. Fire away with your ZIO queries, and I'll hit you back with the best insights I've got. Let's dive into the world of ZIO together!