Skip to main content
Version: 2.x

Type Aliases

The ZStream data type, has two type aliases:

type Stream[+E, +A] = ZStream[Any, E, A]
type UStream[+A] = ZStream[Any, Nothing, A]
  1. Stream[E, A] is a type alias for ZStream[Any, E, A], which represents a ZIO stream that does not require any services, and may fail with an E, or produce elements with an A.

  2. UStream[A] is a type alias for ZStream[Any, Nothing, A], which represents a ZIO stream that does not require any services, it cannot fail, and after evaluation, it may emit zero or more values of type A.

ZIO Chat

Hi, fellow coder! ๐ŸŒŸ Welcome to your ZIO adventure with the ZIO Chat Bot. ๐Ÿš€ Let's master functional Scala together. From referential transparency to concurrent prowess, I've got your back. Ready to dive in? Your questions, my insights โ€“ let's conquer ZIO! ๐Ÿ’ก๐Ÿค–