Object/Class

zio.stream

ZStream

Related Docs: class ZStream | package stream

Permalink

object ZStream extends ZStreamPlatformSpecificConstructors

Linear Supertypes
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. All

Type Members

  1. final class Connection extends AnyRef

    Permalink

    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

    Permalink

    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

    Permalink
  4. final class EnvironmentWithStreamPartiallyApplied[R] extends AnyVal

    Permalink
  5. final class EnvironmentWithZIOPartiallyApplied[R] extends AnyVal

    Permalink
  6. sealed trait GroupBy[-R, +E, +K, +V] extends AnyRef

    Permalink

    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. final class ProvideSomeLayer[R0, -R, +E, +A] extends AnyVal

    Permalink
  8. type Pull[-R, +E, +A] = ZIO[R, Option[E], Chunk[A]]

    Permalink
  9. implicit final class RefineToOrDieOps[R, E <: Throwable, A] extends AnyVal

    Permalink
  10. final class ServiceAtPartiallyApplied[Service] extends AnyVal

    Permalink
  11. final class ServiceWithPartiallyApplied[Service] extends AnyVal

    Permalink
  12. final class ServiceWithStreamPartiallyApplied[Service] extends AnyVal

    Permalink
  13. final class ServiceWithZIOPartiallyApplied[Service] extends AnyVal

    Permalink
  14. implicit final class SortedByKey[R, E, K, A] extends AnyRef

    Permalink

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

  15. implicit final class SyntaxOps[-R, +E, O] extends AnyRef

    Permalink
  16. sealed trait TerminationStrategy extends AnyRef

    Permalink
  17. final class UpdateService[-R, +E, +A, M] extends AnyVal

    Permalink
  18. final class UpdateServiceAt[-R, +E, +A, Service] extends AnyVal

    Permalink
  19. final class WhenCaseZIO[R, E, A] extends AnyVal

    Permalink
  20. final class WhenZIO[R, E] extends AnyVal

    Permalink
  21. trait ZStreamConstructor[Input] extends AnyRef

    Permalink

    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.

  22. trait ZStreamConstructorLowPriority1 extends ZStreamConstructorLowPriority2

    Permalink
  23. trait ZStreamConstructorLowPriority2 extends ZStreamConstructorLowPriority3

    Permalink
  24. trait ZStreamConstructorLowPriority3 extends AnyRef

    Permalink
  25. trait ZStreamConstructorPlatformSpecific extends ZStreamConstructorLowPriority1

    Permalink
  26. type Take[+E, +A] = Exit[Option[E], Chunk[A]]

    Permalink
    Annotations
    @deprecated
    Deprecated

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

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Connection

    Permalink
  5. final val DefaultChunkSize: Int(4096)

    Permalink

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

  6. object Take

    Permalink
  7. object TerminationStrategy

    Permalink
  8. object ZStreamConstructor extends ZStreamConstructorPlatformSpecific

    Permalink
  9. def absolve[R, E, O](xs: ZStream[R, E, Either[E, O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    Submerges the error case of an Either into the ZStream.

  10. def acquireReleaseExitWith[R, E, A](acquire: ZIO[R, E, A])(release: (A, Exit[Any, Any]) ⇒ URIO[R, Any])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  11. def acquireReleaseWith[R, E, A](acquire: ZIO[R, E, A])(release: (A) ⇒ URIO[R, Any])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

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

    Permalink

    Creates a pure stream from a variable list of values

  13. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  14. def async[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Unit, outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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
  15. def asyncInterrupt[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Either[Canceler[R], ZStream[R, E, A]], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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
  16. def asyncManaged[R, E, A](register: ((ZIO[R, Option[E], Chunk[A]]) ⇒ Unit) ⇒ ZManaged[R, E, Any], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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 managed 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
  17. def asyncMaybe[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Option[ZStream[R, E, A]], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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
  18. def asyncZIO[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ ZIO[R, E, Any], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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
  19. def blocking[R, E, A](stream: ZStream[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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.

  20. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  21. def concatAll[R, E, O](streams: ⇒ Chunk[ZStream[R, E, O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

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

  22. def die(ex: ⇒ Throwable)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Nothing]

    Permalink

    The stream that dies with the ex.

  23. def dieMessage(msg: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Nothing]

    Permalink

    The stream that dies with an exception described by msg.

  24. def done[E, A](exit: ⇒ Exit[E, A])(implicit trace: ZTraceElement): ZStream[Any, E, A]

    Permalink

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

  25. def empty(implicit trace: ZTraceElement): ZStream[Any, Nothing, Nothing]

    Permalink

    The empty stream

  26. def environment[R](implicit trace: ZTraceElement): ZStream[R, Nothing, ZEnvironment[R]]

    Permalink

    Accesses the whole environment of the stream.

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

    Permalink

    Accesses the environment of the stream.

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

    Permalink

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

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

    Permalink

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

  30. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  32. def execute[R, E](zio: ⇒ ZIO[R, E, Any])(implicit trace: ZTraceElement): ZStream[R, E, Nothing]

    Permalink

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

  33. def fail[E](error: ⇒ E)(implicit trace: ZTraceElement): ZStream[Any, E, Nothing]

    Permalink

    The stream that always fails with the error

  34. def failCause[E](cause: ⇒ Cause[E])(implicit trace: ZTraceElement): ZStream[Any, E, Nothing]

    Permalink

    The stream that always fails with cause.

  35. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. def finalizer[R](finalizer: ⇒ URIO[R, Any])(implicit trace: ZTraceElement): ZStream[R, Nothing, Any]

    Permalink

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

  37. def from[Input](input: ⇒ Input)(implicit constructor: ZStreamConstructor[Input], trace: ZTraceElement): Out

    Permalink
  38. def fromChunk[O](chunk: ⇒ Chunk[O])(implicit trace: ZTraceElement): ZStream[Any, Nothing, O]

    Permalink

    Creates a stream from a zio.Chunk of values

    Creates a stream from a zio.Chunk of values

    returns

    a finite stream of values

  39. def fromChunkHub[R, E, O](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    Creates a stream from a subscription to a hub.

  40. def fromChunkHubManaged[R, E, O](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZManaged[Any, Nothing, ZStream[R, E, O]]

    Permalink

    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.

  41. def fromChunkHubManagedWithShutdown[R, E, O](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZManaged[Any, Nothing, ZStream[R, E, O]]

    Permalink

    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.

  42. def fromChunkHubWithShutdown[R, E, O](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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.

  43. def fromChunkQueue[R, E, O](queue: ⇒ ZQueue[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    Creates a stream from a queue of values

  44. def fromChunkQueueWithShutdown[R, E, O](queue: ⇒ ZQueue[Nothing, R, Any, E, Nothing, Chunk[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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.

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

    Permalink

    Creates a stream from an arbitrary number of chunks.

  46. final def fromFile(file: ⇒ File, chunkSize: Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Throwable, Byte]

    Permalink

    Creates a stream of bytes from the specified file.

    Creates a stream of bytes from the specified file.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  47. final def fromFileString(name: ⇒ String, chunkSize: Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Throwable, Byte]

    Permalink

    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
  48. final def fromFileURI(uri: ⇒ URI, chunkSize: Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Throwable, Byte]

    Permalink

    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
  49. def fromHub[R, E, A](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    Creates a stream from a subscription to a hub.

  50. def fromHubManaged[R, E, A](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZManaged[Any, Nothing, ZStream[R, E, A]]

    Permalink

    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.

  51. def fromHubManagedWithShutdown[R, E, A](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZManaged[Any, Nothing, ZStream[R, E, A]]

    Permalink

    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.

  52. def fromHubWithShutdown[R, E, A](hub: ⇒ ZHub[Nothing, R, Any, E, Nothing, A], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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.

  53. def fromInputStream(is: ⇒ InputStream, chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, IOException, Byte]

    Permalink

    Creates a stream from a java.io.InputStream

  54. def fromInputStreamManaged[R](is: ⇒ ZManaged[R, IOException, InputStream], chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, IOException, Byte]

    Permalink

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

  55. def fromInputStreamZIO[R](is: ⇒ ZIO[R, IOException, InputStream], chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, IOException, Byte]

    Permalink

    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.

  56. def fromIterable[O](as: ⇒ Iterable[O])(implicit trace: ZTraceElement): ZStream[Any, Nothing, O]

    Permalink

    Creates a stream from an iterable collection of values

  57. def fromIterableZIO[R, E, O](iterable: ⇒ ZIO[R, E, Iterable[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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: ZTraceElement): ZStream[Any, Throwable, A]

    Permalink
  59. def fromIteratorManaged[R, A](iterator: ⇒ ZManaged[R, Throwable, Iterator[A]], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from a managed iterator

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

    Permalink

    Creates a stream from an iterator

  61. def fromIteratorZIO[R, A](iterator: ⇒ ZIO[R, Throwable, Iterator[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from an iterator that may potentially throw exceptions

  62. def fromJavaIterator[A](iterator: ⇒ Iterator[A])(implicit trace: ZTraceElement): ZStream[Any, Throwable, A]

    Permalink

    Creates a stream from a Java iterator that may throw exceptions

  63. def fromJavaIteratorManaged[R, A](iterator: ⇒ ZManaged[R, Throwable, Iterator[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from a managed iterator

  64. def fromJavaIteratorSucceed[A](iterator: ⇒ Iterator[A])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Creates a stream from a Java iterator

  65. def fromJavaIteratorZIO[R, A](iterator: ⇒ ZIO[R, Throwable, Iterator[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

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

  66. final def fromJavaStream[A](stream: ⇒ java.util.stream.Stream[A])(implicit trace: ZTraceElement): ZStream[Any, Throwable, A]

    Permalink

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  67. final def fromJavaStreamManaged[R, A](stream: ⇒ ZManaged[R, Throwable, java.util.stream.Stream[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from a managed Java stream

    Creates a stream from a managed Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  68. final def fromJavaStreamSucceed[R, A](stream: ⇒ java.util.stream.Stream[A])(implicit trace: ZTraceElement): ZStream[R, Nothing, A]

    Permalink

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
  69. final def fromJavaStreamZIO[R, A](stream: ⇒ ZIO[R, Throwable, java.util.stream.Stream[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from a Java stream

    Creates a stream from a Java stream

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

    Permalink

    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
  71. final def fromPath(path: ⇒ Path, chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Throwable, Byte]

    Permalink

    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
  72. def fromPull[R, E, A](zio: ZManaged[R, Nothing, ZIO[R, Option[E], Chunk[A]]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink
  73. def fromQueue[R, E, O](queue: ⇒ ZQueue[Nothing, R, Any, E, Nothing, O], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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

  74. def fromQueueWithShutdown[R, E, O](queue: ⇒ ZQueue[Nothing, R, Any, E, Nothing, O], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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

  75. def fromReader(reader: ⇒ Reader, chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, IOException, Char]

    Permalink

    Creates a stream from java.io.Reader.

    Creates a stream from java.io.Reader.

    Definition Classes
    ZStreamPlatformSpecificConstructors
  76. def fromReaderManaged[R](reader: ⇒ ZManaged[R, IOException, Reader], chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, IOException, Char]

    Permalink

    Creates a stream from managed java.io.Reader.

    Creates a stream from managed java.io.Reader.

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

    Permalink

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

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

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

    Permalink

    Creates a stream from the resource specified in path

    Creates a stream from the resource specified in path

    Definition Classes
    ZStreamPlatformSpecificConstructors
  79. def fromSchedule[R, A](schedule: ⇒ Schedule[R, Any, A])(implicit trace: ZTraceElement): ZStream[R with Clock, Nothing, A]

    Permalink

    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.

  80. def fromSocketServer(port: ⇒ Int, host: ⇒ Option[String] = None)(implicit trace: ZTraceElement): ZStream[Any, Throwable, Connection]

    Permalink

    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
  81. def fromTQueue[A](queue: ⇒ TQueue[A])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

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

  82. def fromZIO[R, E, A](fa: ⇒ ZIO[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  83. def fromZIOOption[R, E, A](fa: ⇒ ZIO[R, Option[E], A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  84. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  85. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  86. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  87. def iterate[A](a: ⇒ A)(f: (A) ⇒ A)(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

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

  88. def log(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the current log level.

  89. def logAnnotate(key: ⇒ String, value: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

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

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

    Permalink

    Retrieves the log annotations associated with the current scope.

  91. def logDebug(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the debug log level.

  92. def logError(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the error log level.

  93. def logErrorCause(cause: ⇒ Cause[Any])(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified cause as an error.

  94. def logFatal(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the fatal log level.

  95. def logInfo(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the informational log level.

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

    Permalink

    Sets the log level for streams composed after this.

  97. def logSpan(label: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

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

  98. def logTrace(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the trace log level.

  99. def logWarning(message: ⇒ String)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Unit]

    Permalink

    Logs the specified message at the warning log level.

  100. def managed[R, E, A](managed: ⇒ ZManaged[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    Creates a single-valued stream from a managed resource

  101. def mergeAll[R, E, O](n: ⇒ Int, outputBuffer: ⇒ Int = 16)(streams: ZStream[R, E, O]*)(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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.

  102. def mergeAllUnbounded[R, E, O](outputBuffer: ⇒ Int = 16)(streams: ZStream[R, E, O]*)(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    Like mergeAll, but runs all streams concurrently.

  103. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  104. def never(implicit trace: ZTraceElement): ZStream[Any, Nothing, Nothing]

    Permalink

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

  105. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  106. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  107. def paginate[R, E, A, S](s: ⇒ S)(f: (S) ⇒ (A, Option[S]))(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    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.

  108. def paginateChunk[A, S](s: ⇒ S)(f: (S) ⇒ (Chunk[A], Option[S]))(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    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.

  109. def paginateChunkZIO[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, (Chunk[A], Option[S])])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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.

  110. def paginateZIO[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, (A, Option[S])])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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.

  111. 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: ZTraceElement): ZStream[RIn with RIn2, E, ROut2]

    Permalink
  112. def range(min: ⇒ Int, max: ⇒ Int, chunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Nothing, Int]

    Permalink

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

  113. def repeat[A](a: ⇒ A)(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Repeats the provided value infinitely.

  114. def repeatWithSchedule[R, A](a: ⇒ A, schedule: ⇒ Schedule[R, A, _])(implicit trace: ZTraceElement): ZStream[R with Clock, Nothing, A]

    Permalink

    Repeats the value using the provided schedule.

  115. def repeatZIO[R, E, A](fa: ⇒ ZIO[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  116. def repeatZIOChunk[R, E, A](fa: ⇒ ZIO[R, E, Chunk[A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  117. def repeatZIOChunkOption[R, E, A](fa: ⇒ ZIO[R, Option[E], Chunk[A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  118. def repeatZIOOption[R, E, A](fa: ⇒ ZIO[R, Option[E], A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  119. def repeatZIOWithSchedule[R, E, A](effect: ⇒ ZIO[R, E, A], schedule: ⇒ Schedule[R, A, Any])(implicit trace: ZTraceElement): ZStream[R with Clock, E, A]

    Permalink

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

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

    Permalink

    Accesses the specified service in the environment of the effect.

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

    Permalink

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

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

    Permalink

    Accesses the specified service in the environment of the stream.

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

    Permalink

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

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

    Permalink

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

  125. def succeed[A](a: ⇒ A)(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Creates a single-valued pure stream

  126. def suspend[R, E, A](stream: ⇒ ZStream[R, E, A]): ZStream[R, E, A]

    Permalink

    Returns a lazily constructed stream.

  127. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  128. def tick(interval: ⇒ zio.Duration)(implicit trace: ZTraceElement): ZStream[Clock, Nothing, Unit]

    Permalink

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

  129. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  130. def unfold[S, A](s: ⇒ S)(f: (S) ⇒ Option[(A, S)])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

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

  131. def unfoldChunk[S, A](s: ⇒ S)(f: (S) ⇒ Option[(Chunk[A], S)])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

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

  132. def unfoldChunkZIO[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, Option[(Chunk[A], S)]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

  133. def unfoldZIO[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, Option[(A, S)]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

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

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

    Permalink

    A stream that contains a single Unit value.

  135. def unwrap[R, E, A](fa: ⇒ ZIO[R, E, ZStream[R, E, A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    Creates a stream produced from an effect

  136. def unwrapManaged[R, E, A](fa: ⇒ ZManaged[R, E, ZStream[R, E, A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    Creates a stream produced from a ZManaged

  137. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  138. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  139. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  140. def when[R, E, O](b: ⇒ Boolean)(zStream: ⇒ ZStream[R, E, O])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

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

  141. def whenCase[R, E, A, O](a: ⇒ A)(pf: PartialFunction[A, ZStream[R, E, O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

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

  142. def whenCaseZIO[R, E, A](a: ⇒ ZIO[R, E, A]): WhenCaseZIO[R, E, A]

    Permalink

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

  143. def whenZIO[R, E](b: ⇒ ZIO[R, E, Boolean]): WhenZIO[R, E]

    Permalink

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

Deprecated Value Members

  1. def access[R]: EnvironmentWithPartiallyApplied[R]

    Permalink

    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 environmentWith

  2. def accessM[R]: EnvironmentWithZIOPartiallyApplied[R]

    Permalink

    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 environmentWithZIO

  3. def accessStream[R]: EnvironmentWithStreamPartiallyApplied[R]

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use environmentWithStream

  4. def accessZIO[R]: EnvironmentWithZIOPartiallyApplied[R]

    Permalink

    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 environmentWithZIO

  5. def bracket[R, E, A](acquire: ⇒ ZIO[R, E, A])(release: (A) ⇒ URIO[R, Any])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  6. def bracketExit[R, E, A](acquire: ⇒ ZIO[R, E, A])(release: (A, Exit[Any, Any]) ⇒ URIO[R, Any])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  7. 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)(implicit trace: ZTraceElement): ZStream[R, E, F]

    Permalink

    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

  8. 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)(implicit trace: ZTraceElement): ZStream[R, E, D]

    Permalink

    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

  9. def crossN[R, E, A, B, C](zStream1: ⇒ ZStream[R, E, A], zStream2: ⇒ ZStream[R, E, B])(f: (A, B) ⇒ C)(implicit trace: ZTraceElement): ZStream[R, E, C]

    Permalink

    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 instance method cross

  10. def effectAsync[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Unit, outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  11. def effectAsyncInterrupt[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Either[Canceler[R], ZStream[R, E, A]], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  12. def effectAsyncM[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ ZIO[R, E, Any], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  13. def effectAsyncMaybe[R, E, A](register: (Emit[R, E, A, Unit]) ⇒ Option[ZStream[R, E, A]], outputBuffer: ⇒ Int = 16)(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  14. def fromBlockingIterator[A](iterator: ⇒ Iterator[A])(implicit trace: ZTraceElement): ZStream[Any, Throwable, A]

    Permalink

    Creates a stream from an blocking iterator that may throw exceptions.

    Creates a stream from an blocking iterator that may throw exceptions.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use blocking(fromIterator())

  15. def fromBlockingJavaIterator[A](iter: ⇒ Iterator[A])(implicit trace: ZTraceElement): ZStream[Any, Throwable, A]

    Permalink

    Creates a stream from an blocking Java iterator that may throw exceptions.

    Creates a stream from an blocking Java iterator that may throw exceptions.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use blocking(fromJavaIterator())

  16. def fromEffect[R, E, A](fa: ⇒ ZIO[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  17. def fromEffectOption[R, E, A](fa: ⇒ ZIO[R, Option[E], A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  18. def fromInputStreamEffect[R](is: ⇒ ZIO[R, IOException, InputStream], chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, IOException, Byte]

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromInputStreamZIO

  19. def fromIterableM[R, E, O](iterable: ⇒ ZIO[R, E, Iterable[O]])(implicit trace: ZTraceElement): ZStream[R, E, O]

    Permalink

    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

  20. def fromIteratorEffect[R, A](iterator: ⇒ ZIO[R, Throwable, Iterator[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    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

  21. def fromIteratorTotal[A](iterator: ⇒ Iterator[A], maxChunkSize: ⇒ Int = DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Creates a stream from an iterator

    Creates a stream from an iterator

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromIteratorSucceed

  22. def fromJavaIteratorEffect[R, A](iterator: ⇒ ZIO[R, Throwable, Iterator[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    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

  23. def fromJavaIteratorTotal[A](iterator: ⇒ Iterator[A])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Creates a stream from a Java iterator

    Creates a stream from a Java iterator

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromJavaIteratorSucceed

  24. final def fromJavaStreamEffect[R, A](stream: ⇒ ZIO[R, Throwable, java.util.stream.Stream[A]])(implicit trace: ZTraceElement): ZStream[R, Throwable, A]

    Permalink

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromJavaStreamZIO

  25. final def fromJavaStreamTotal[A](stream: ⇒ java.util.stream.Stream[A])(implicit trace: ZTraceElement): ZStream[Any, Nothing, A]

    Permalink

    Creates a stream from a Java stream

    Creates a stream from a Java stream

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromJavaStreamSucceed

  26. def fromReaderEffect[R](reader: ⇒ ZIO[R, IOException, Reader], chunkSize: ⇒ Int = ZStream.DefaultChunkSize)(implicit trace: ZTraceElement): ZStream[R, IOException, Char]

    Permalink

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

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

    Definition Classes
    ZStreamPlatformSpecificConstructors
    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use fromReaderZIO

  27. def halt[E](cause: ⇒ Cause[E])(implicit trace: ZTraceElement): ZStream[Any, E, Nothing]

    Permalink

    The stream that always halts with cause.

    The stream that always halts with cause.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use failCause

  28. def paginateChunkM[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, (Chunk[A], Option[S])])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  29. def paginateM[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, (A, Option[S])])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  30. def repeatEffect[R, E, A](fa: ⇒ ZIO[R, E, A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  31. def repeatEffectChunk[R, E, A](fa: ⇒ ZIO[R, E, Chunk[A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  32. def repeatEffectChunkOption[R, E, A](fa: ⇒ ZIO[R, Option[E], Chunk[A]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  33. def repeatEffectOption[R, E, A](fa: ⇒ ZIO[R, Option[E], A])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  34. def repeatEffectWith[R, E, A](effect: ⇒ ZIO[R, E, A], schedule: ⇒ Schedule[R, A, Any])(implicit trace: ZTraceElement): ZStream[R with Clock, E, A]

    Permalink

    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

  35. def repeatWith[R, A](a: ⇒ A, schedule: Schedule[R, A, _])(implicit trace: ZTraceElement): ZStream[R with Clock, Nothing, A]

    Permalink

    Repeats the value using the provided schedule.

    Repeats the value using the provided schedule.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use repeatWithSchedule

  36. def services[A, B, C, D](implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], arg3: Tag[D], trace: ZTraceElement): ZStream[A with B with C with D, Nothing, (A, B, C, D)]

    Permalink

    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

  37. def services[A, B, C](implicit arg0: Tag[A], arg1: Tag[B], arg2: Tag[C], trace: ZTraceElement): ZStream[A with B with C, Nothing, (A, B, C)]

    Permalink

    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

  38. def services[A, B](implicit arg0: Tag[A], arg1: Tag[B], trace: ZTraceElement): ZStream[A with B, Nothing, (A, B)]

    Permalink

    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

  39. def unfoldChunkM[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, Option[(Chunk[A], S)]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  40. def unfoldM[R, E, A, S](s: ⇒ S)(f: (S) ⇒ ZIO[R, E, Option[(A, S)]])(implicit trace: ZTraceElement): ZStream[R, E, A]

    Permalink

    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

  41. def whenCaseM[R, E, A](a: ⇒ ZIO[R, E, A]): WhenCaseZIO[R, E, A]

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenCaseZIO

  42. def whenM[R, E](b: ⇒ ZIO[R, E, Boolean]): WhenZIO[R, E]

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use whenZIO

  43. 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)(implicit trace: ZTraceElement): ZStream[R, E, F]

    Permalink

    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

  44. 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)(implicit trace: ZTraceElement): ZStream[R, E, D]

    Permalink

    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

  45. def zipN[R, E, A, B, C](zStream1: ⇒ ZStream[R, E, A], zStream2: ⇒ ZStream[R, E, B])(f: (A, B) ⇒ C)(implicit trace: ZTraceElement): ZStream[R, E, C]

    Permalink

    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