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]
-
Stream[E, A]is a type alias forZStream[Any, E, A], which represents a ZIO stream that does not require any services, and may fail with anE, or produce elements with anA. -
UStream[A]is a type alias forZStream[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 typeA.