Packages

object ZStream extends ZStreamPlatformSpecificConstructors

Linear Supertypes
ZStreamPlatformSpecificConstructors, AnyRef, Any
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 Connection extends AnyRef

    Accepted connection made to a specific channel AsynchronousServerSocketChannel

    Accepted connection made to a specific channel AsynchronousServerSocketChannel

    Definition Classes
    ZStreamPlatformSpecificConstructors
  2. 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.

  3. final class EnvironmentWithPartiallyApplied[R] extends AnyVal
  4. final class EnvironmentWithStreamPartiallyApplied[R] extends AnyVal
  5. final class EnvironmentWithZIOPartiallyApplied[R] extends AnyVal
  6. sealed trait 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.

  7. sealed trait HaltStrategy extends AnyRef
  8. final class ProvideSomeLayer[R0, -R, +E, +A] extends AnyVal
  9. type Pull[-R, +E, +A] = ZIO[R, Option[E], Chunk[A]]
  10. implicit final class RefineToOrDieOps[R, E <: Throwable, A] extends AnyVal
  11. final class ScopedPartiallyApplied[R] extends AnyVal
  12. final class ServiceAtPartiallyApplied[Service] extends AnyVal
  13. final class ServiceWithPartiallyApplied[Service] extends AnyVal
  14. final class ServiceWithStreamPartiallyApplied[Service] extends AnyVal
  15. final class ServiceWithZIOPartiallyApplied[Service] extends AnyVal
  16. implicit final class SortedByKey[R, E, K, A] extends AnyRef

    Provides extension methods for streams that are sorted by distinct keys.

  17. implicit final class SyntaxOps[-R, +E, O] extends AnyRef
  18. final class UnwrapScopedPartiallyApplied[R] extends AnyVal
  19. final class UpdateService[-R, +E, +A, M] extends AnyVal
  20. final class UpdateServiceAt[-R, +E, +A, Service] extends AnyVal
  21. final class WhenCaseZIO[R, E, A] extends AnyVal
  22. final class WhenZIO[R, E] extends AnyVal
  23. 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.

  24. trait ZStreamConstructorLowPriority1 extends ZStreamConstructorLowPriority2
  25. trait ZStreamConstructorLowPriority2 extends ZStreamConstructorLowPriority3
  26. trait ZStreamConstructorLowPriority3 extends AnyRef
  27. trait ZStreamConstructorPlatformSpecific extends ZStreamConstructorLowPriority1
    Definition Classes
    ZStreamPlatformSpecificConstructors

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]])(implicit trace: Trace): ZStream[R, E, O]

    Submerges the error case of an Either into the ZStream.

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

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

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

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

  8. def alphanumeric(implicit trace: Trace): ZStream[Any, Nothing, Char]

    An infinite stream of random alphanumeric characters.

  9. def apply[A](as: A*)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a pure stream from a variable list of values

  10. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  11. def async[R, E, A](register: (Emit[R, E, A, Unit]) => Unit, outputBuffer: => Int = 16)(implicit trace: Trace): 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
  12. def asyncInterrupt[R, E, A](register: (Emit[R, E, A, Unit]) => Either[URIO[R, Any], ZStream[R, E, A]], outputBuffer: => Int = 16)(implicit trace: Trace): 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
  13. def asyncMaybe[R, E, A](register: (Emit[R, E, A, Unit]) => Option[ZStream[R, E, A]], outputBuffer: => Int = 16)(implicit trace: Trace): 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
  14. def asyncScoped[R, E, A](register: ((ZIO[R, Option[E], Chunk[A]]) => Unit) => ZIO[Scope with R, E, Any], outputBuffer: => Int = 16)(implicit trace: Trace): 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 itself returns an a scoped resource. 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 asyncZIO[R, E, A](register: (Emit[R, E, A, Unit]) => ZIO[R, E, Any], outputBuffer: => Int = 16)(implicit trace: Trace): 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
  16. def blocking[R, E, A](stream: => ZStream[R, E, A])(implicit trace: Trace): 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.

  17. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  18. def concatAll[R, E, O](streams: => Chunk[ZStream[R, E, O]])(implicit trace: Trace): ZStream[R, E, O]

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

  19. def debug(value: => Any)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Prints the specified message to the console for debugging purposes.

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

    The stream that dies with the ex.

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

    The stream that dies with an exception described by msg.

  22. def done[E, A](exit: => Exit[E, A])(implicit trace: Trace): ZStream[Any, E, A]

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

  23. def empty(implicit trace: Trace): ZStream[Any, Nothing, Nothing]

    The empty stream

  24. def environment[R](implicit trace: Trace): ZStream[R, Nothing, ZEnvironment[R]]

    Accesses the whole environment of the stream.

  25. def environmentWith[R]: EnvironmentWithPartiallyApplied[R]

    Accesses the environment of the stream.

  26. def environmentWithStream[R]: EnvironmentWithStreamPartiallyApplied[R]

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

  27. def environmentWithZIO[R]: EnvironmentWithZIOPartiallyApplied[R]

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

  28. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  30. def execute[R, E](zio: => ZIO[R, E, Any])(implicit trace: Trace): ZStream[R, E, Nothing]

    Creates a stream that executes the specified effect but emits no elements.

  31. def fail[E](error: => E)(implicit trace: Trace): ZStream[Any, E, Nothing]

    The stream that always fails with the error

  32. def failCause[E](cause: => Cause[E])(implicit trace: Trace): ZStream[Any, E, Nothing]

    The stream that always fails with cause.

  33. def finalizer[R](finalizer: => URIO[R, Any])(implicit trace: Trace): ZStream[R, Nothing, Any]

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

  34. def from[Input](input: => Input)(implicit constructor: ZStreamConstructor[Input], trace: Trace): Out
  35. def fromChannel[R, E, A](channel: ZChannel[R, Any, Any, Any, E, Chunk[A], Any]): ZStream[R, E, A]

    Creates a stream from a zio.stream.ZChannel

  36. def fromChunk[O](chunk: => Chunk[O])(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from a zio.Chunk of values

    Creates a stream from a zio.Chunk of values

    returns

    a finite stream of values

  37. def fromChunkHub[O](hub: => Hub[Chunk[O]])(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from a subscription to a hub.

  38. def fromChunkHubScoped[O](hub: => Hub[Chunk[O]])(implicit trace: Trace): ZIO[Scope, Nothing, ZStream[Any, Nothing, O]]

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

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

  39. def fromChunkHubScopedWithShutdown[O](hub: => Hub[Chunk[O]])(implicit trace: Trace): ZIO[Scope, Nothing, ZStream[Any, Nothing, O]]

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

    Creates a stream from a subscription to a hub in the context of a scoped effect. The scoped 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.

  40. def fromChunkHubWithShutdown[O](hub: => Hub[Chunk[O]])(implicit trace: Trace): ZStream[Any, Nothing, 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.

  41. def fromChunkQueue[O](queue: => Dequeue[Chunk[O]])(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from a queue of values

  42. def fromChunkQueueWithShutdown[O](queue: => Dequeue[Chunk[O]])(implicit trace: Trace): ZStream[Any, Nothing, 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.

  43. def fromChunks[O](cs: Chunk[O]*)(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from an arbitrary number of chunks.

  44. final def fromFile(file: => File, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, Byte]

    Creates a stream of bytes from the specified file.

    Creates a stream of bytes from the specified file.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  45. final def fromFileName(name: => String, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, Byte]

    Creates a stream of bytes from a file at the specified path represented by a string.

    Creates a stream of bytes from a file at the specified path represented by a string.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  46. final def fromFileURI(uri: => URI, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, Byte]

    Creates a stream of bytes from a file at the specified uri.

    Creates a stream of bytes from a file at the specified uri.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  47. def fromHub[A](hub: => Hub[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a stream from a subscription to a hub.

  48. def fromHubScoped[A](hub: => Hub[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZIO[Scope, Nothing, ZStream[Any, Nothing, A]]

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

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

  49. def fromHubScopedWithShutdown[A](hub: => Hub[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZIO[Scope, Nothing, ZStream[Any, Nothing, A]]

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

    Creates a stream from a subscription to a hub in the context of a scoped effect. The scoped 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.

  50. def fromHubWithShutdown[A](hub: => Hub[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, 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.

  51. def fromInputStream(is: => InputStream, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, IOException, Byte]

    Creates a stream from a java.io.InputStream

  52. def fromInputStreamScoped[R](is: => ZIO[Scope with R, IOException, InputStream], chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[R, IOException, Byte]

    Creates a stream from a scoped java.io.InputStream value.

  53. def fromInputStreamZIO[R](is: => ZIO[R, IOException, InputStream], chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[R, IOException, Byte]

    Creates a stream from a java.io.InputStream.

    Creates a stream from a java.io.InputStream. Ensures that the input stream is closed after it is exhausted.

  54. def fromIterable[O](as: => Iterable[O], chunkSize: => Int)(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from an iterable collection of values

  55. def fromIterable[O](as: => Iterable[O])(implicit trace: Trace): ZStream[Any, Nothing, O]

    Creates a stream from an iterable collection of values

  56. def fromIterableZIO[R, E, O](iterable: => ZIO[R, E, Iterable[O]], chunkSize: => Int)(implicit trace: Trace): ZStream[R, E, O]

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

  57. def fromIterableZIO[R, E, O](iterable: => ZIO[R, E, Iterable[O]])(implicit trace: Trace): ZStream[R, E, O]

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

  58. def fromIterator[A](iterator: => Iterator[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, A]

    Creates a stream from an iterator

  59. def fromIteratorScoped[R, A](iterator: => ZIO[Scope with R, Throwable, Iterator[A]], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a scoped iterator

  60. def fromIteratorSucceed[A](iterator: => Iterator[A], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a stream from an iterator

  61. def fromIteratorZIO[R, A](iterator: => ZIO[R, Throwable, Iterator[A]], chunkSize: Int)(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from an iterator that may potentially throw exceptions

  62. def fromIteratorZIO[R, A](iterator: => ZIO[R, Throwable, Iterator[A]])(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from an iterator that may potentially throw exceptions

  63. def fromJavaIterator[A](iterator: => Iterator[A], chunkSize: Int)(implicit trace: Trace): ZStream[Any, Throwable, A]

    Creates a stream from a Java iterator that may throw exceptions

  64. def fromJavaIterator[A](iterator: => Iterator[A])(implicit trace: Trace): ZStream[Any, Throwable, A]

    Creates a stream from a Java iterator that may throw exceptions

  65. def fromJavaIteratorScoped[R, A](iterator: => ZIO[Scope with R, Throwable, Iterator[A]], chunkSize: Int)(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a scoped iterator

  66. def fromJavaIteratorScoped[R, A](iterator: => ZIO[Scope with R, Throwable, Iterator[A]])(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a scoped iterator

  67. def fromJavaIteratorSucceed[A](iterator: => Iterator[A], chunkSize: Int)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a stream from a Java iterator

  68. def fromJavaIteratorSucceed[A](iterator: => Iterator[A])(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a stream from a Java iterator

  69. def fromJavaIteratorZIO[R, A](iterator: => ZIO[R, Throwable, Iterator[A]], chunkSize: Int)(implicit trace: Trace): ZStream[R, Throwable, A]

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

  70. def fromJavaIteratorZIO[R, A](iterator: => ZIO[R, Throwable, Iterator[A]])(implicit trace: Trace): ZStream[R, Throwable, A]

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

  71. final def fromJavaStream[A](stream: => java.util.stream.Stream[A], chunkSize: Int)(implicit trace: Trace): ZStream[Any, Throwable, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  72. final def fromJavaStream[A](stream: => java.util.stream.Stream[A])(implicit trace: Trace): ZStream[Any, Throwable, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  73. final def fromJavaStreamScoped[R, A](stream: => ZIO[Scope with R, Throwable, java.util.stream.Stream[A]], chunkSize: Int)(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a scoped Java stream

    Creates a stream from a scoped Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  74. final def fromJavaStreamScoped[R, A](stream: => ZIO[Scope with R, Throwable, java.util.stream.Stream[A]])(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a scoped Java stream

    Creates a stream from a scoped Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  75. final def fromJavaStreamSucceed[R, A](stream: => java.util.stream.Stream[A], chunkSize: Int)(implicit trace: Trace): ZStream[R, Nothing, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  76. final def fromJavaStreamSucceed[R, A](stream: => java.util.stream.Stream[A])(implicit trace: Trace): ZStream[R, Nothing, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  77. final def fromJavaStreamZIO[R, A](stream: => ZIO[R, Throwable, java.util.stream.Stream[A]], chunkSize: Int)(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  78. final def fromJavaStreamZIO[R, A](stream: => ZIO[R, Throwable, java.util.stream.Stream[A]])(implicit trace: Trace): ZStream[R, Throwable, A]

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  79. def fromOutputStreamWriter(write: (OutputStream) => Unit, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, Byte]

    Creates a stream from a callback that writes to java.io.OutputStream.

    Creates a stream from a callback that writes to java.io.OutputStream. Note: the input stream will be closed after the write is done.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  80. final def fromPath(path: => Path, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Throwable, Byte]

    Creates a stream of bytes from a file at the specified path.

    Creates a stream of bytes from a file at the specified path.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  81. def fromPull[R, E, A](zio: ZIO[Scope with R, Nothing, ZIO[R, Option[E], Chunk[A]]])(implicit trace: Trace): ZStream[R, E, A]

    Creates a stream from a ZIO effect that pulls elements from another stream.

    Creates a stream from a ZIO effect that pulls elements from another stream. See toPull for reference

  82. def fromQueue[O](queue: => Dequeue[O], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, 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

  83. def fromQueueWithShutdown[O](queue: => Dequeue[O], maxChunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, 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

  84. def fromReader(reader: => Reader, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, IOException, Char]

    Creates a stream from java.io.Reader.

    Creates a stream from java.io.Reader.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  85. def fromReaderScoped[R](reader: => ZIO[Scope with R, IOException, Reader], chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[R, IOException, Char]

    Creates a stream from scoped java.io.Reader.

    Creates a stream from scoped java.io.Reader.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  86. def fromReaderZIO[R](reader: => ZIO[R, IOException, Reader], chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[R, IOException, Char]

    Creates a stream from an effect producing java.io.Reader.

    Creates a stream from an effect producing java.io.Reader.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  87. final def fromResource(path: => String, chunkSize: => Int = ZStream.DefaultChunkSize)(implicit trace: Trace): ZStream[Any, IOException, Byte]

    Creates a stream from the resource specified in path

    Creates a stream from the resource specified in path

    Definition Classes
    ZStreamPlatformSpecificConstructors
  88. def fromSchedule[R, A](schedule: => Schedule[R, Any, A])(implicit trace: Trace): ZStream[R, 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.

  89. def fromSocketServer(port: => Int, host: => Option[String] = None)(implicit trace: Trace): ZStream[Any, Throwable, Connection]

    Create a stream of accepted connection from server socket Emit socket Connection from which you can read / write and ensure it is closed after it is used

    Create a stream of accepted connection from server socket Emit socket Connection from which you can read / write and ensure it is closed after it is used

    Definition Classes
    ZStreamPlatformSpecificConstructors
  90. def fromTPriorityQueue[A](queue: => TPriorityQueue[A])(implicit trace: Trace): ZStream[Any, Nothing, A]

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

  91. def fromTQueue[A](queue: => TDequeue[A])(implicit trace: Trace): ZStream[Any, Nothing, A]

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

  92. def fromZIO[R, E, A](fa: => ZIO[R, E, A])(implicit trace: Trace): ZStream[R, E, A]

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

  93. def fromZIOOption[R, E, A](fa: => ZIO[R, Option[E], A])(implicit trace: Trace): ZStream[R, E, A]

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

  94. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  95. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  96. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  97. def iterate[A](a: => A)(f: (A) => A)(implicit trace: Trace): ZStream[Any, Nothing, A]

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

  98. def log(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the current log level.

  99. def logAnnotate(annotations: => Set[LogAnnotation])(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each log in streams composed after this with the specified log annotation.

  100. def logAnnotate(annotation: => LogAnnotation, annotations: LogAnnotation*)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each log in streams composed after this with the specified log annotation.

  101. def logAnnotate(key: => String, value: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each log in streams composed after this with the specified log annotation.

  102. def logAnnotations(implicit trace: Trace): ZStream[Any, Nothing, Map[String, String]]

    Retrieves the log annotations associated with the current scope.

  103. def logDebug(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the debug log level.

  104. def logError(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the error log level.

  105. def logErrorCause(cause: => Cause[Any])(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified cause as an error.

  106. def logFatal(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the fatal log level.

  107. def logInfo(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the informational log level.

  108. def logLevel(level: LogLevel)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Sets the log level for streams composed after this.

  109. def logSpan(label: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Adjusts the label for the logging span for streams composed after this.

  110. def logTrace(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the trace log level.

  111. def logWarning(message: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Logs the specified message at the warning log level.

  112. def mergeAll[R, E, O](n: => Int, outputBuffer: => Int = 16)(streams: ZStream[R, E, O]*)(implicit trace: Trace): 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.

  113. def mergeAllUnbounded[R, E, O](outputBuffer: => Int = 16)(streams: ZStream[R, E, O]*)(implicit trace: Trace): ZStream[R, E, O]

    Like mergeAll, but runs all streams concurrently.

  114. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  115. def never(implicit trace: Trace): ZStream[Any, Nothing, Nothing]

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

  116. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  117. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  118. def paginate[R, E, A, S](s: => S)(f: (S) => (A, Option[S]))(implicit trace: Trace): 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.

  119. def paginateChunk[A, S](s: => S)(f: (S) => (Chunk[A], Option[S]))(implicit trace: Trace): 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.

  120. def paginateChunkZIO[R, E, A, S](s: => S)(f: (S) => ZIO[R, E, (Chunk[A], Option[S])])(implicit trace: Trace): 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.

  121. def paginateZIO[R, E, A, S](s: => S)(f: (S) => ZIO[R, E, (A, Option[S])])(implicit trace: Trace): 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.

  122. def provideLayer[RIn, E, ROut, RIn2, ROut2](layer: ZLayer[RIn, E, ROut])(stream: => ZStream[ROut with RIn2, E, ROut2])(implicit ev: zio.EnvironmentTag[RIn2], tag: zio.EnvironmentTag[ROut], trace: Trace): ZStream[RIn with RIn2, E, ROut2]
  123. def range(min: => Int, max: => Int, chunkSize: => Int = DefaultChunkSize)(implicit trace: Trace): ZStream[Any, Nothing, Int]

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

  124. def repeat[A](a: => A)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Repeats the provided value infinitely.

  125. def repeatWithSchedule[R, A](a: => A, schedule: => Schedule[R, A, _])(implicit trace: Trace): ZStream[R, Nothing, A]

    Repeats the value using the provided schedule.

  126. def repeatZIO[R, E, A](fa: => ZIO[R, E, A])(implicit trace: Trace): ZStream[R, E, A]

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

  127. def repeatZIOChunk[R, E, A](fa: => ZIO[R, E, Chunk[A]])(implicit trace: Trace): ZStream[R, E, A]

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

  128. def repeatZIOChunkOption[R, E, A](fa: => ZIO[R, Option[E], Chunk[A]])(implicit trace: Trace): ZStream[R, E, A]

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

  129. def repeatZIOOption[R, E, A](fa: => ZIO[R, Option[E], A])(implicit trace: Trace): ZStream[R, E, A]

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

  130. def repeatZIOWithSchedule[R, E, A](effect: => ZIO[R, E, A], schedule: => Schedule[R, A, Any])(implicit trace: Trace): ZStream[R, E, A]

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

  131. def scoped[R]: ScopedPartiallyApplied[R]

    Creates a single-valued stream from a scoped resource

  132. def scopedWith[R, E, A](f: (Scope) => ZIO[R, E, A])(implicit trace: Trace): ZStream[R, E, A]

    Creates a single-valued stream from a scoped resource

  133. def service[A](implicit arg0: Tag[A], trace: Trace): ZStream[A, Nothing, A]

    Accesses the specified service in the environment of the effect.

  134. def serviceAt[Service]: ServiceAtPartiallyApplied[Service]

    Accesses the service corresponding to the specified key in the environment.

  135. def serviceWith[Service]: ServiceWithPartiallyApplied[Service]

    Accesses the specified service in the environment of the stream.

  136. def serviceWithStream[Service]: ServiceWithStreamPartiallyApplied[Service]

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

  137. def serviceWithZIO[Service]: ServiceWithZIOPartiallyApplied[Service]

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

  138. def succeed[A](a: => A)(implicit trace: Trace): ZStream[Any, Nothing, A]

    Creates a single-valued pure stream

  139. def suspend[R, E, A](stream: => ZStream[R, E, A]): ZStream[R, E, A]

    Returns a lazily constructed stream.

  140. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  141. def tagged(tags: => Set[MetricLabel])(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each metric in streams composed after this with the specified tag.

  142. def tagged(tag: => MetricLabel, tags: MetricLabel*)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each metric in streams composed after this with the specified tag.

  143. def tagged(key: => String, value: => String)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

    Annotates each metric in streams composed after this with the specified tag.

  144. def tags(implicit trace: Trace): ZStream[Any, Nothing, Set[MetricLabel]]

    Retrieves the metric tags associated with the current scope.

  145. def tick(interval: => zio.Duration)(implicit trace: Trace): ZStream[Any, Nothing, Unit]

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

  146. def toString(): String
    Definition Classes
    AnyRef → Any
  147. def unfold[S, A](s: => S)(f: (S) => Option[(A, S)])(implicit trace: Trace): ZStream[Any, Nothing, A]

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

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

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

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

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

  150. def unfoldZIO[R, E, A, S](s: => S)(f: (S) => ZIO[R, E, Option[(A, S)]])(implicit trace: Trace): ZStream[R, E, A]

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

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

    A stream that contains a single Unit value.

  152. def unwrap[R, E, A](fa: => ZIO[R, E, ZStream[R, E, A]])(implicit trace: Trace): ZStream[R, E, A]

    Creates a stream produced from an effect

  153. def unwrapScoped[R]: UnwrapScopedPartiallyApplied[R]

    Creates a stream produced from a scoped ZIO

  154. def unwrapScopedWith[R, E, A](f: (Scope) => ZIO[R, E, ZStream[R, E, A]])(implicit trace: Trace): ZStream[R, E, A]

    Creates a stream produced from a scoped ZIO

  155. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  156. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  157. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  158. def when[R, E, O](b: => Boolean)(zStream: => ZStream[R, E, O])(implicit trace: Trace): ZStream[R, E, O]

    Returns the specified stream if the given condition is satisfied, otherwise returns an empty stream.

  159. def whenCase[R, E, A, O](a: => A)(pf: PartialFunction[A, ZStream[R, E, O]])(implicit trace: Trace): ZStream[R, E, O]

    Returns the resulting stream when the given PartialFunction is defined for the given value, otherwise returns an empty stream.

  160. def whenCaseZIO[R, E, A](a: => ZIO[R, E, A]): WhenCaseZIO[R, E, A]

    Returns the resulting stream when the given PartialFunction is defined for the given effectful value, otherwise returns an empty stream.

  161. def whenZIO[R, E](b: => ZIO[R, E, Boolean]): WhenZIO[R, E]

    Returns the specified stream if the given effectful condition is satisfied, otherwise returns an empty stream.

  162. object Connection
    Definition Classes
    ZStreamPlatformSpecificConstructors
  163. object HaltStrategy
  164. object ZStreamConstructor extends ZStreamConstructorPlatformSpecific

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from ZStreamPlatformSpecificConstructors

Inherited from AnyRef

Inherited from Any

Ungrouped