Packages

object ZStream extends ZStreamPlatformSpecific with Serializable

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZStream
  2. Serializable
  3. ZStreamPlatformSpecific
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Fold[R, E, +A, S] = ZManaged[R, Nothing, (S, (S) => Boolean, (S, A) => ZIO[R, E, S]) => ZManaged[R, E, S]]

    Describes an effectful fold over the elements of the stream.

    Describes an effectful fold over the elements of the stream. Conceptually it is an effectful state transformation function in the R environment that can fail with a checked error E. It consumes stream elements of type A and keeps state of type S. It consists of three main components:

    1. The current state represented by S. 2. A continuation signal function (S => Boolean). Decides whether the fold should continue based on the current state. 3. Effectful step function ((S, A) => ZIO[R, E, S]) which takes as arguments the current state, the current stream element and effectfully produces the next state.
  2. implicit final class unTake[-R, +E, +A] extends AnyVal

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def apply[A](as: A*): Stream[Nothing, A]

    Creates a pure stream from a variable list of values

  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def bracket[R, E, A](acquire: ZIO[R, E, A])(release: (A) => ZIO[R, Nothing, _]): ZStream[R, E, A]

    Creates a stream from a single value that will get cleaned up after the stream is consumed

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def die(ex: Throwable): Stream[Nothing, Nothing]

    The stream that always dies with ex.

  9. final def dieMessage(msg: String): Stream[Nothing, Nothing]

    The stream that always dies with an exception described by msg.

  10. final def effectAsync[R, E, A](register: ((ZIO[R, Option[E], A]) => Unit) => Unit, outputBuffer: Int = 16): ZStream[R, E, A]

    Creates a stream from an asynchronous callback that can be called multiple times.

    Creates a stream from an asynchronous callback that can be called multiple times. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

  11. final def effectAsyncInterrupt[R, E, A](register: ((ZIO[R, Option[E], A]) => Unit) => Either[Canceler, ZStream[R, E, A]], outputBuffer: Int = 16): ZStream[R, E, A]

    Creates a stream from an asynchronous callback that can be called multiple times.

    Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback returns either a canceler or synchronously returns a stream. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

  12. final def effectAsyncM[R, E, A](register: ((ZIO[R, Option[E], A]) => Unit) => ZIO[R, E, _], outputBuffer: Int = 16): ZStream[R, E, A]

    Creates a stream from an asynchronous callback that can be called multiple times The registration of the callback itself returns an effect.

    Creates a stream from an asynchronous callback that can be called multiple times The registration of the callback itself returns an effect. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

  13. final def effectAsyncMaybe[R, E, A](register: ((ZIO[R, Option[E], A]) => Unit) => Option[ZStream[R, E, A]], outputBuffer: Int = 16): ZStream[R, E, A]

    Creates a stream from an asynchronous callback that can be called multiple times.

    Creates a stream from an asynchronous callback that can be called multiple times. The registration of the callback can possibly return the stream synchronously. The optionality of the error type E can be used to signal the end of the stream, by setting it to None.

  14. final val empty: Stream[Nothing, Nothing]

    The empty stream

  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. final def fail[E](error: E): Stream[E, Nothing]

    The stream that always fails with error

  18. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  19. final def finalizer[R](finalizer: ZIO[R, Nothing, _]): ZStream[R, Nothing, Nothing]

    Creates a stream that emits no elements, never fails and executes the finalizer before it ends.

  20. final def flatten[R, E, A](fa: ZStream[R, E, ZStream[R, E, A]]): ZStream[R, E, A]

    Flattens nested streams.

  21. final def flattenPar[R, E, A](n: Int, outputBuffer: Int = 16)(fa: ZStream[R, E, ZStream[R, E, A]]): ZStream[R, E, A]

    Flattens a stream of streams into a stream by executing a non-deterministic concurrent merge.

    Flattens a stream of streams into a stream by executing a non-deterministic concurrent merge. Up to n streams may be consumed in parallel and up to outputBuffer elements may be buffered by this operator.

  22. final def fromChunk[A](c: Chunk[A]): Stream[Nothing, A]

    Creates a stream from a zio.Chunk of values

  23. final def fromEffect[R, E, A](fa: ZIO[R, E, A]): ZStream[R, E, A]

    Creates a stream from an effect producing a value of type A

  24. final def fromIterable[A](as: Iterable[A]): Stream[Nothing, A]

    Creates a stream from an iterable collection of values

  25. final def fromQueue[R, E, A](queue: ZQueue[_, _, R, E, _, A]): ZStream[R, E, A]

    Creates a stream from a zio.ZQueue of values

  26. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. final def halt[E](cause: Cause[E]): ZStream[Any, E, Nothing]

    The stream that always halts with cause.

  28. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  29. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  30. final def managed[R, E, A](managed: ZManaged[R, E, A]): ZStream[R, E, A]

    Creates a single-valued stream from a managed resource

  31. final def mergeAll[R, E, A](n: Int, outputBuffer: Int = 16)(streams: ZStream[R, E, A]*): ZStream[R, E, A]

    Merges a variable list of streams in a non-deterministic fashion.

    Merges a variable list of streams in a non-deterministic fashion. Up to n streams may be consumed in parallel and up to outputBuffer elements may be buffered by this operator.

  32. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  33. final val never: Stream[Nothing, Nothing]

    The stream that never produces any value or fails with any error.

  34. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  35. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def range(min: Int, max: Int): Stream[Nothing, Int]

    Constructs a stream from a range of integers (inclusive).

  37. final def repeatEffect[R, E, A](fa: ZIO[R, E, A]): ZStream[R, E, A]

    Creates a stream from an effect producing a value of type A which repeats forever

  38. final def repeatEffectWith[R, E, A](fa: ZIO[R, E, A], schedule: ZSchedule[R, Unit, _]): ZStream[R with Clock, E, A]

    Creates a stream from an effect producing a value of type A which repeats using the specified schedule

  39. final def succeed[A](a: A): Stream[Nothing, A]

    Creates a single-valued pure stream

  40. final def succeedLazy[A](a: => A): Stream[Nothing, A]

    Creates a single, lazily-evaluated-valued pure stream

  41. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def unfold[S, A](s: S)(f0: (S) => Option[(A, S)]): Stream[Nothing, A]

    Creates a stream by peeling off the "layers" of a value of type S

  44. final def unfoldM[R, E, A, S](s: S)(f0: (S) => ZIO[R, E, Option[(A, S)]]): ZStream[R, E, A]

    Creates a stream by effectfully peeling off the "layers" of a value of type S

  45. final def unwrap[R, E, A](fa: ZIO[R, E, ZStream[R, E, A]]): ZStream[R, E, A]

    Creates a stream produced from an effect

  46. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  47. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  48. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped