Packages

object ZStream extends ZStreamPlatformSpecificConstructors

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZStream
  2. ZStreamPlatformSpecificConstructors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. final class AccessPartiallyApplied[R] extends AnyVal
  2. final class AccessStreamPartiallyApplied[R] extends AnyVal
  3. final class AccessZIOPartiallyApplied[R] extends AnyVal
  4. trait Emit[+R, -E, -A, +B] extends (ZIO[R, Option[E], Chunk[A]]) => B

    An Emit[R, E, A, B] represents an asynchronous callback that can be called multiple times.

    An Emit[R, E, A, B] represents an asynchronous callback that can be called multiple times. The callback can be called with a value of type ZIO[R, Option[E], Chunk[A]], where succeeding with a Chunk[A] indicates to emit those elements, failing with Some[E] indicates to terminate with that error, and failing with None indicates to terminate with an end of stream signal.

  5. final class GroupBy[-R, +E, +K, +V] extends AnyRef

    Representation of a grouped stream.

    Representation of a grouped stream. This allows to filter which groups will be processed. Once this is applied all groups will be processed in parallel and the results will be merged in arbitrary order.

  6. final class ProvideSomeLayer[R0, -R, +E, +A] extends AnyVal
  7. type Pull[-R, +E, +A] = ZIO[R, Option[E], Chunk[A]]
  8. implicit final class RefineToOrDieOps[R, E <: Throwable, A] extends AnyVal
  9. sealed trait TerminationStrategy extends AnyRef
  10. final class UpdateService[-R, +E, +A, M] extends AnyVal
  11. trait ZStreamConstructor[Input] extends AnyRef

    A ZStreamConstructor[Input] knows how to construct a ZStream value from an input of type Input.

    A ZStreamConstructor[Input] knows how to construct a ZStream value from an input of type Input. This allows the type of the ZStream value constructed to depend on Input.

  12. trait ZStreamConstructorLowPriority1 extends ZStreamConstructorLowPriority2
  13. trait ZStreamConstructorLowPriority2 extends ZStreamConstructorLowPriority3
  14. trait ZStreamConstructorLowPriority3 extends AnyRef
  15. trait ZStreamConstructorPlatformSpecific extends ZStreamConstructorLowPriority1

Deprecated Type Members

  1. type Take[+E, +A] = Exit[Option[E], Chunk[A]]
    Annotations
    @deprecated
    Deprecated

    (Since version 1.0.0) use zio.stream.Take instead

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 val DefaultChunkSize: Int(4096)

    The default chunk size used by the various combinators and constructors of ZStream.

  5. def absolve[R, E, O](xs: ZStream[R, E, Either[E, O]]): ZStream[R, E, O]

    Submerges the error case of an Either into the ZStream.

  6. def access[R]: AccessPartiallyApplied[R]

    Accesses the environment of the stream.

  7. def accessStream[R]: AccessStreamPartiallyApplied[R]

    Accesses the environment of the stream in the context of a stream.

  8. def accessZIO[R]: AccessZIOPartiallyApplied[R]

    Accesses the environment of the stream in the context of an effect.

  9. def acquireReleaseExitWith[R, E, A](acquire: ZIO[R, E, A])(release: (A, Exit[Any, Any]) => URIO[R, Any]): ZStream[R, E, A]

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

  10. def acquireReleaseWith[R, E, A](acquire: ZIO[R, E, A])(release: (A) => URIO[R, Any]): ZStream[R, E, A]

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

  11. def apply[A](as: A*): ZStream[Any, Nothing, A]

    Creates a pure stream from a variable list of values

  12. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  13. def async[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  14. def asyncInterrupt[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => Either[Canceler[R], 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  15. def asyncMaybe[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  16. def asyncZIO[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => ZIO[R, E, Any], 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  17. def blocking[R, E, A](stream: ZStream[R, E, A]): ZStream[R, E, A]

    Locks the execution of the specified stream to the blocking executor.

    Locks the execution of the specified stream to the blocking executor. Any streams that are composed after this one will automatically be shifted back to the previous executor.

  18. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  19. def concatAll[R, E, O](streams: Chunk[ZStream[R, E, O]]): ZStream[R, E, O]

    Concatenates all of the streams in the chunk to one stream.

  20. def die(ex: => Throwable): ZStream[Any, Nothing, Nothing]

    The stream that dies with the ex.

  21. def dieMessage(msg: => String): ZStream[Any, Nothing, Nothing]

    The stream that dies with an exception described by msg.

  22. def done[E, A](exit: Exit[E, A]): ZStream[Any, E, A]

    The stream that ends with the zio.Exit value exit.

  23. val empty: ZStream[Any, Nothing, Nothing]

    The empty stream

  24. def environment[R]: ZStream[R, Nothing, R]

    Accesses the whole environment of the stream.

  25. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  27. def fail[E](error: => E): ZStream[Any, E, Nothing]

    The stream that always fails with the error

  28. def failCause[E](cause: => Cause[E]): ZStream[Any, E, Nothing]

    The stream that always fails with cause.

  29. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  30. def finalizer[R](finalizer: URIO[R, Any]): ZStream[R, Nothing, Any]

    Creates a one-element stream that never fails and executes the finalizer when it ends.

  31. def from[Input](input: => Input)(implicit constructor: ZStreamConstructor[Input]): Out
  32. def fromChunk[O](c: => Chunk[O]): ZStream[Any, Nothing, O]

    Creates a stream from a zio.Chunk of values

    Creates a stream from a zio.Chunk of values

    c

    a chunk of values

    returns

    a finite stream of values

  33. def fromChunkHub[R, E, O](hub: ZHub[Nothing, R, Any, E, Nothing, Chunk[O]]): ZStream[R, E, O]

    Creates a stream from a subscription to a hub.

  34. def fromChunkHubManaged[R, E, O](hub: ZHub[Nothing, R, Any, E, Nothing, Chunk[O]]): ZManaged[Any, Nothing, ZStream[R, E, O]]

    Creates a stream from a subscription to a hub in the context of a managed effect.

    Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.

  35. def fromChunkHubManagedWithShutdown[R, E, O](hub: ZHub[Nothing, R, Any, E, Nothing, Chunk[O]]): ZManaged[Any, Nothing, ZStream[R, E, O]]

    Creates a stream from a subscription to a hub in the context of a managed effect.

    Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.

    The hub will be shut down once the stream is closed.

  36. def fromChunkHubWithShutdown[R, E, O](hub: ZHub[Nothing, R, Any, E, Nothing, Chunk[O]]): ZStream[R, E, O]

    Creates a stream from a subscription to a hub.

    Creates a stream from a subscription to a hub.

    The hub will be shut down once the stream is closed.

  37. def fromChunkQueue[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, Chunk[O]]): ZStream[R, E, O]

    Creates a stream from a queue of values

  38. def fromChunkQueueWithShutdown[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, Chunk[O]]): ZStream[R, E, O]

    Creates a stream from a queue of values.

    Creates a stream from a queue of values. The queue will be shutdown once the stream is closed.

  39. def fromChunks[O](cs: Chunk[O]*): ZStream[Any, Nothing, O]

    Creates a stream from an arbitrary number of chunks.

  40. def fromHub[R, E, A](hub: ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: Int = DefaultChunkSize): ZStream[R, E, A]

    Creates a stream from a subscription to a hub.

  41. def fromHubManaged[R, E, A](hub: ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: Int = DefaultChunkSize): ZManaged[Any, Nothing, ZStream[R, E, A]]

    Creates a stream from a subscription to a hub in the context of a managed effect.

    Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.

  42. def fromHubManagedWithShutdown[R, E, A](hub: ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: Int = DefaultChunkSize): ZManaged[Any, Nothing, ZStream[R, E, A]]

    Creates a stream from a subscription to a hub in the context of a managed effect.

    Creates a stream from a subscription to a hub in the context of a managed effect. The managed effect describes subscribing to receive messages from the hub while the stream describes taking messages from the hub.

    The hub will be shut down once the stream is closed.

  43. def fromHubWithShutdown[R, E, A](hub: ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: Int = DefaultChunkSize): ZStream[R, E, A]

    Creates a stream from a subscription to a hub.

    Creates a stream from a subscription to a hub.

    The hub will be shut down once the stream is closed.

  44. def fromIterable[O](as: => Iterable[O]): ZStream[Any, Nothing, O]

    Creates a stream from an iterable collection of values

  45. def fromIterableZIO[R, E, O](iterable: ZIO[R, E, Iterable[O]]): ZStream[R, E, O]

    Creates a stream from an effect producing a value of type Iterable[A]

  46. def fromIterator[A](iterator: => Iterator[A]): ZStream[Any, Throwable, A]
  47. def fromIteratorManaged[R, A](iterator: ZManaged[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from a managed iterator

  48. def fromIteratorSucceed[A](iterator: => Iterator[A]): ZStream[Any, Nothing, A]

    Creates a stream from an iterator

  49. def fromIteratorZIO[R, A](iterator: ZIO[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from an iterator that may potentially throw exceptions

  50. def fromJavaIterator[A](iterator: => Iterator[A]): ZStream[Any, Throwable, A]

    Creates a stream from a Java iterator that may throw exceptions

  51. def fromJavaIteratorManaged[R, A](iterator: ZManaged[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from a managed iterator

  52. def fromJavaIteratorSucceed[A](iterator: => Iterator[A]): ZStream[Any, Nothing, A]

    Creates a stream from a Java iterator

  53. def fromJavaIteratorZIO[R, A](iterator: ZIO[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from a Java iterator that may potentially throw exceptions

  54. def fromPull[R, E, A](zio: ZManaged[R, Nothing, ZIO[R, Option[E], Chunk[A]]]): ZStream[R, E, A]
  55. def fromQueue[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, O], maxChunkSize: Int = DefaultChunkSize): ZStream[R, E, O]

    Creates a stream from a queue of values

    Creates a stream from a queue of values

    maxChunkSize

    Maximum number of queued elements to put in one chunk in the stream

  56. def fromQueueWithShutdown[R, E, O](queue: ZQueue[Nothing, R, Any, E, Nothing, O], maxChunkSize: Int = DefaultChunkSize): ZStream[R, E, O]

    Creates a stream from a queue of values.

    Creates a stream from a queue of values. The queue will be shutdown once the stream is closed.

    maxChunkSize

    Maximum number of queued elements to put in one chunk in the stream

  57. def fromSchedule[R, A](schedule: Schedule[R, Any, A]): ZStream[R with Has[Clock], Nothing, A]

    Creates a stream from a zio.Schedule that does not require any further input.

    Creates a stream from a zio.Schedule that does not require any further input. The stream will emit an element for each value output from the schedule, continuing for as long as the schedule continues.

  58. def fromTQueue[A](queue: TQueue[A]): ZStream[Any, Nothing, A]

    Creates a stream from a zio.stm.TQueue of values.

  59. def fromZIO[R, E, A](fa: ZIO[R, E, A]): ZStream[R, E, A]

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

  60. def fromZIOOption[R, E, A](fa: ZIO[R, Option[E], A]): ZStream[R, E, A]

    Creates a stream from an effect producing a value of type A or an empty Stream

  61. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  62. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  63. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  64. def iterate[A](a: A)(f: (A) => A): ZStream[Any, Nothing, A]

    The infinite stream of iterative function application: a, f(a), f(f(a)), f(f(f(a))), ...

  65. def managed[R, E, A](managed: ZManaged[R, E, A]): ZStream[R, E, A]

    Creates a single-valued stream from a managed resource

  66. def mergeAll[R, E, O](n: Int, outputBuffer: Int = 16)(streams: ZStream[R, E, O]*): ZStream[R, E, O]

    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 chunks may be buffered by this operator.

  67. def mergeAllUnbounded[R, E, O](outputBuffer: Int = 16)(streams: ZStream[R, E, O]*): ZStream[R, E, O]

    Like mergeAll, but runs all streams concurrently.

  68. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  69. val never: ZStream[Any, Nothing, Nothing]

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

  70. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  71. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  72. def paginate[R, E, A, S](s: S)(f: (S) => (A, Option[S])): ZStream[Any, Nothing, A]

    Like unfold, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfold, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

  73. def paginateChunk[A, S](s: S)(f: (S) => (Chunk[A], Option[S])): ZStream[Any, Nothing, A]

    Like unfoldChunk, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfoldChunk, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

  74. def paginateChunkZIO[R, E, A, S](s: S)(f: (S) => ZIO[R, E, (Chunk[A], Option[S])]): ZStream[R, E, A]

    Like unfoldChunkZIO, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfoldChunkZIO, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

  75. def paginateZIO[R, E, A, S](s: S)(f: (S) => ZIO[R, E, (A, Option[S])]): ZStream[R, E, A]

    Like unfoldZIO, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfoldZIO, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

  76. def range(min: Int, max: Int, chunkSize: Int = DefaultChunkSize): ZStream[Any, Nothing, Int]

    Constructs a stream from a range of integers (lower bound included, upper bound not included)

  77. def repeat[A](a: => A): ZStream[Any, Nothing, A]

    Repeats the provided value infinitely.

  78. def repeatWithSchedule[R, A](a: => A, schedule: Schedule[R, A, _]): ZStream[R with Has[Clock], Nothing, A]

    Repeats the value using the provided schedule.

  79. def repeatZIO[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.

  80. def repeatZIOChunk[R, E, A](fa: ZIO[R, E, Chunk[A]]): ZStream[R, E, A]

    Creates a stream from an effect producing chunks of A values which repeats forever.

  81. def repeatZIOChunkOption[R, E, A](fa: ZIO[R, Option[E], Chunk[A]]): ZStream[R, E, A]

    Creates a stream from an effect producing chunks of A values until it fails with None.

  82. def repeatZIOOption[R, E, A](fa: ZIO[R, Option[E], A]): ZStream[R, E, A]

    Creates a stream from an effect producing values of type A until it fails with None.

  83. def repeatZIOWithSchedule[R, E, A](effect: ZIO[R, E, A], schedule: Schedule[R, A, Any]): ZStream[R with Has[Clock], E, A]

    Creates a stream from an effect producing a value of type A, which is repeated using the specified schedule.

  84. def service[A](implicit arg0: zio.Tag[A]): ZStream[Has[A], Nothing, A]

    Accesses the specified service in the environment of the effect.

  85. def succeed[A](a: => A): ZStream[Any, Nothing, A]

    Creates a single-valued pure stream

  86. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  87. def tick(interval: zio.Duration): ZStream[Has[Clock], Nothing, Unit]

    A stream that emits Unit values spaced by the specified duration.

  88. def toString(): String
    Definition Classes
    AnyRef → Any
  89. def unfold[S, A](s: S)(f: (S) => Option[(A, S)]): ZStream[Any, Nothing, A]

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

  90. def unfoldChunk[S, A](s: S)(f: (S) => Option[(Chunk[A], S)]): ZStream[Any, Nothing, A]

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

  91. def unfoldChunkZIO[R, E, A, S](s: S)(f: (S) => ZIO[R, E, Option[(Chunk[A], S)]]): ZStream[R, E, A]

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

  92. def unfoldZIO[R, E, A, S](s: S)(f: (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

  93. val unit: ZStream[Any, Nothing, Unit]

    A stream that contains a single Unit value.

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

    Creates a stream produced from an effect

  95. def unwrapManaged[R, E, A](fa: ZManaged[R, E, ZStream[R, E, A]]): ZStream[R, E, A]

    Creates a stream produced from a ZManaged

  96. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  97. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  98. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  99. object Take
  100. object TerminationStrategy
  101. object ZStreamConstructor extends ZStreamConstructorPlatformSpecific

Deprecated Value Members

  1. def accessM[R]: AccessZIOPartiallyApplied[R]

    Accesses the environment of the stream in the context of an effect.

    Accesses the environment of the stream in the context of an effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use accessZIO

  2. def bracket[R, E, A](acquire: ZIO[R, E, A])(release: (A) => URIO[R, Any]): ZStream[R, E, A]

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseWith

  3. def bracketExit[R, E, A](acquire: ZIO[R, E, A])(release: (A, Exit[Any, Any]) => URIO[R, Any]): ZStream[R, E, A]

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use acquireReleaseExitWith

  4. def crossN[R, E, A, B, C, D, F](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B], zStream3: ZStream[R, E, C], zStream4: ZStream[R, E, D])(f: (A, B, C, D) => F): ZStream[R, E, F]

    Composes the specified streams to create a cartesian product of elements with a specified function.

    Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent stream would be run multiple times, for every combination of elements in the prior streams.

    See also ZStream#zipN[R,E,A,B,C,D,F]* for the more common point-wise variant.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  5. def crossN[R, E, A, B, C, D](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B], zStream3: ZStream[R, E, C])(f: (A, B, C) => D): ZStream[R, E, D]

    Composes the specified streams to create a cartesian product of elements with a specified function.

    Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent stream would be run multiple times, for every combination of elements in the prior streams.

    See also ZStream#zipN[R,E,A,B,C,D]* for the more common point-wise variant.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  6. def crossN[R, E, A, B, C](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B])(f: (A, B) => C): ZStream[R, E, C]

    Composes the specified streams to create a cartesian product of elements with a specified function.

    Composes the specified streams to create a cartesian product of elements with a specified function. Subsequent streams would be run multiple times, for every combination of elements in the prior streams.

    See also ZStream#zipN[R,E,A,B,C]* for the more common point-wise variant.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use cross

  7. def effectAsync[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use async

  8. def effectAsyncInterrupt[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => Either[Canceler[R], 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncInterrupt

  9. def effectAsyncM[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => ZIO[R, E, Any], 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncZIO

  10. def effectAsyncMaybe[R, E, A](register: (Emit[R, E, A, Future[Boolean]]) => 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.

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use asyncMaybe

  11. 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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIO

  12. def fromEffectOption[R, E, A](fa: ZIO[R, Option[E], A]): ZStream[R, E, A]

    Creates a stream from an effect producing a value of type A or an empty Stream

    Creates a stream from an effect producing a value of type A or an empty Stream

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromZIOOption

  13. def fromIterableM[R, E, O](iterable: ZIO[R, E, Iterable[O]]): ZStream[R, E, O]

    Creates a stream from an effect producing a value of type Iterable[A]

    Creates a stream from an effect producing a value of type Iterable[A]

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromIterableZIO

  14. def fromIteratorEffect[R, A](iterator: ZIO[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from an iterator that may potentially throw exceptions

    Creates a stream from an iterator that may potentially throw exceptions

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromIteratorZIO

  15. def fromIteratorTotal[A](iterator: => Iterator[A]): ZStream[Any, Nothing, A]

    Creates a stream from an iterator

    Creates a stream from an iterator

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromIteratorSucceed

  16. def fromJavaIteratorEffect[R, A](iterator: ZIO[R, Throwable, Iterator[A]]): ZStream[R, Throwable, A]

    Creates a stream from a Java iterator that may potentially throw exceptions

    Creates a stream from a Java iterator that may potentially throw exceptions

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromJavaIteratorZIO

  17. def fromJavaIteratorTotal[A](iterator: => Iterator[A]): ZStream[Any, Nothing, A]

    Creates a stream from a Java iterator

    Creates a stream from a Java iterator

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromJavaIteratorSucceed

  18. def halt[E](cause: => Cause[E]): ZStream[Any, E, Nothing]

    The stream that always halts with cause.

    The stream that always halts with cause.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCause

  19. def paginateChunkM[R, E, A, S](s: S)(f: (S) => ZIO[R, E, (Chunk[A], Option[S])]): ZStream[R, E, A]

    Like unfoldChunkM, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfoldChunkM, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use paginateChunkZIO

  20. def paginateM[R, E, A, S](s: S)(f: (S) => ZIO[R, E, (A, Option[S])]): ZStream[R, E, A]

    Like unfoldM, but allows the emission of values to end one step further than the unfolding of the state.

    Like unfoldM, but allows the emission of values to end one step further than the unfolding of the state. This is useful for embedding paginated APIs, hence the name.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use paginateZIO

  21. 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.

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatZIO

  22. def repeatEffectChunk[R, E, A](fa: ZIO[R, E, Chunk[A]]): ZStream[R, E, A]

    Creates a stream from an effect producing chunks of A values which repeats forever.

    Creates a stream from an effect producing chunks of A values which repeats forever.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatZIOChunk

  23. def repeatEffectChunkOption[R, E, A](fa: ZIO[R, Option[E], Chunk[A]]): ZStream[R, E, A]

    Creates a stream from an effect producing chunks of A values until it fails with None.

    Creates a stream from an effect producing chunks of A values until it fails with None.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatZIOChunkOption

  24. def repeatEffectOption[R, E, A](fa: ZIO[R, Option[E], A]): ZStream[R, E, A]

    Creates a stream from an effect producing values of type A until it fails with None.

    Creates a stream from an effect producing values of type A until it fails with None.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatZIOOption

  25. def repeatEffectWith[R, E, A](effect: ZIO[R, E, A], schedule: Schedule[R, A, Any]): ZStream[R with Has[Clock], E, A]

    Creates a stream from an effect producing a value of type A, which is repeated using the specified schedule.

    Creates a stream from an effect producing a value of type A, which is repeated using the specified schedule.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatZIOWith

  26. def repeatWith[R, A](a: => A, schedule: Schedule[R, A, _]): ZStream[R with Has[Clock], Nothing, A]

    Repeats the value using the provided schedule.

    Repeats the value using the provided schedule.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatWithSchedule

  27. def services[A, B, C, D](implicit arg0: zio.Tag[A], arg1: zio.Tag[B], arg2: zio.Tag[C], arg3: zio.Tag[D]): ZStream[Has[A] with Has[B] with Has[C] with Has[D], Nothing, (A, B, C, D)]

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  28. def services[A, B, C](implicit arg0: zio.Tag[A], arg1: zio.Tag[B], arg2: zio.Tag[C]): ZStream[Has[A] with Has[B] with Has[C], Nothing, (A, B, C)]

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  29. def services[A, B](implicit arg0: zio.Tag[A], arg1: zio.Tag[B]): ZStream[Has[A] with Has[B], Nothing, (A, B)]

    Accesses the specified services in the environment of the effect.

    Accesses the specified services in the environment of the effect.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use service

  30. def unfoldChunkM[R, E, A, S](s: S)(f: (S) => ZIO[R, E, Option[(Chunk[A], S)]]): ZStream[R, E, A]

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use unfoldChunkZIO

  31. def unfoldM[R, E, A, S](s: S)(f: (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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use unfoldZIO

  32. def zipN[R, E, A, B, C, D, F](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B], zStream3: ZStream[R, E, C], zStream4: ZStream[R, E, D])(f: (A, B, C, D) => F): ZStream[R, E, F]

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function.

    Returns an effect that executes the specified effects in parallel, combining their results with the specified f function. If any effect fails, then the other effects will be interrupted.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  33. def zipN[R, E, A, B, C, D](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B], zStream3: ZStream[R, E, C])(f: (A, B, C) => D): ZStream[R, E, D]

    Zips with specified streams together with the specified function.

    Zips with specified streams together with the specified function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

  34. def zipN[R, E, A, B, C](zStream1: ZStream[R, E, A], zStream2: ZStream[R, E, B])(f: (A, B) => C): ZStream[R, E, C]

    Zips the specified streams together with the specified function.

    Zips the specified streams together with the specified function.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use zip

Inherited from AnyRef

Inherited from Any

Ungrouped