Package

zio

stream

Permalink

package stream

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. stream
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Sink[+E, +A0, -A, +B] = ZSink[Any, E, A0, A, B]

    Permalink
  2. type Stream[+E, +A] = ZStream[Any, E, A]

    Permalink
  3. type StreamChunk[+E, +A] = ZStreamChunk[Any, E, A]

    Permalink
  4. sealed trait Take[+E, +A] extends Product with Serializable

    Permalink

    A Take[E, A] represents a single take from a queue modeling a stream of values.

    A Take[E, A] represents a single take from a queue modeling a stream of values. A Take may be a failure cause Cause[E], an element value A or an end-of-stream marker.

  5. trait ZSink[-R, +E, +A0, -A, +B] extends AnyRef

    Permalink

    A Sink[E, A0, A, B] consumes values of type A, ultimately producing either an error of type E, or a value of type B together with a remainder of type A0.

    A Sink[E, A0, A, B] consumes values of type A, ultimately producing either an error of type E, or a value of type B together with a remainder of type A0.

    Sinks form monads and combine in the usual ways.

  6. trait ZSinkPlatformSpecific extends AnyRef

    Permalink
  7. trait ZStream[-R, +E, +A] extends Serializable

    Permalink

    A Stream[E, A] represents an effectful stream that can produce values of type A, or potentially fail with a value of type E.

    A Stream[E, A] represents an effectful stream that can produce values of type A, or potentially fail with a value of type E.

    Streams have a very similar API to Scala collections, making them immediately familiar to most developers. Unlike Scala collections, streams can be used on effectful streams of data, such as HTTP connections, files, and so forth.

    Streams do not leak resources. This guarantee holds in the presence of early termination (not all of a stream is consumed), failure, or even interruption.

    Thanks to only first-order types, appropriate variance annotations, and specialized effect type (ZIO), streams feature extremely good type inference and should almost never require specification of any type parameters.

  8. trait ZStreamChunk[-R, +E, +A] extends AnyRef

    Permalink

    A ZStreamChunk[R, E, A] represents an effectful stream that can produce values of type A, or potentially fail with a value of type E.

    A ZStreamChunk[R, E, A] represents an effectful stream that can produce values of type A, or potentially fail with a value of type E.

    ZStreamChunk differs from ZStream in that elements in the stream are processed in batches, which is orders of magnitude more efficient than dealing with each element individually.

    ZStreamChunk is particularly suited for situations where you are dealing with values of primitive types, e.g. those coming off a java.io.InputStream

  9. trait ZStreamPlatformSpecific extends AnyRef

    Permalink

Value Members

  1. object Sink

    Permalink
  2. object Stream extends ZStreamPlatformSpecific

    Permalink
  3. val StreamChunk: ZStreamChunk.type

    Permalink
  4. object StreamChunkPure extends Serializable

    Permalink
  5. object Take extends Serializable

    Permalink
  6. object ZSink extends ZSinkPlatformSpecific

    Permalink
  7. object ZStream extends ZStreamPlatformSpecific with Serializable

    Permalink
  8. object ZStreamChunk

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped