The following datatypes can be found in ZIO streams library:
- Stream — A
Streamis a lazy, concurrent, asynchronous source of values.
- Sink — A
Sinkis a consumer of values from a
Stream, which may produces a value when it has consumed enough.
- SubscriptionRef - A
SubscriptionRefcontains a current value and a stream that can be consumed to observe all changes to that value.