Class

zio.managed

ZManagedZStreamSyntax

Related Doc: package managed

Permalink

implicit final class ZManagedZStreamSyntax[R, E, A] extends AnyVal

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

Instance Constructors

  1. new ZManagedZStreamSyntax(self: ZStream[R, E, A])

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def getClass(): Class[_ <: AnyVal]

    Permalink
    Definition Classes
    AnyVal → Any
  6. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  7. final def runFoldManaged[S](s: ⇒ S)(f: (S, A) ⇒ S)(implicit trace: ZTraceElement): ZManaged[R, E, S]

    Permalink

    Executes a pure fold over the stream of values.

    Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream.

  8. final def runFoldManagedZIO[R1 <: R, E1 >: E, S](s: ⇒ S)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.

  9. final def runFoldWhileManaged[S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ S)(implicit trace: ZTraceElement): ZManaged[R, E, S]

    Permalink

    Executes a pure fold over the stream of values.

    Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled.

  10. final def runFoldWhileManagedZIO[R1 <: R, E1 >: E, S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:

    Stream(1)
      .fold(0)(_ <= 4)((s, a) => UIO(s + a))  // Managed[Nothing, Int]
      .use(ZIO.succeed)                       // UIO[Int] == 5
    cont

    function which defines the early termination condition

  11. final def runForeachChunkManaged[R1 <: R, E1 >: E](f: (Chunk[A]) ⇒ ZIO[R1, E1, Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runForeachChunk, but returns a scoped ZIO so the finalization order can be controlled.

  12. final def runForeachScoped[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#foreach, but returns a ZManaged so the finalization order can be controlled.

  13. final def runForeachWhileManaged[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, Boolean])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runForeachWhile, but returns a scoped ZIO so the finalization order can be controlled.

  14. final def runIntoHubManaged[R1 <: R, E1 >: E](hub: ⇒ ZHub[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runIntoHub, but provides the result as a ZManaged to allow for scope composition.

  15. final def runIntoQueueElementsManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Exit[Option[E1], A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runIntoQueue, but provides the result as a ZManaged to allow for scope composition.

  16. final def runIntoQueueManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runIntoQueue, but provides the result as a ZManaged to allow for scope composition.

  17. def runManaged[R1 <: R, E1 >: E, B](sink: ⇒ ZSink[R1, E1, A, Any, B])(implicit trace: ZTraceElement): ZManaged[R1, E1, B]

    Permalink
  18. def toString(): String

    Permalink
    Definition Classes
    Any

Deprecated Value Members

  1. final def foldManaged[S](s: ⇒ S)(f: (S, A) ⇒ S)(implicit trace: ZTraceElement): ZManaged[R, E, S]

    Permalink

    Executes a pure fold over the stream of values.

    Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) user runFoldManaged

  2. final def foldManagedM[R1 <: R, E1 >: E, S](s: ⇒ S)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldScopedManaged

  3. final def foldManagedZIO[R1 <: R, E1 >: E, S](s: ⇒ S)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldManagedZIO

  4. final def foldWhileManaged[S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ S)(implicit trace: ZTraceElement): ZManaged[R, E, S]

    Permalink

    Executes a pure fold over the stream of values.

    Executes a pure fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldWhileManaged

  5. final def foldWhileManagedM[R1 <: R, E1 >: E, S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:

    Stream(1)
      .forever                                // an infinite Stream of 1's
      .fold(0)(_ <= 4)((s, a) => UIO(s + a))  // Managed[Nothing, Int]
      .use(ZIO.succeed)                       // UIO[Int] == 5
    cont

    function which defines the early termination condition

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldWhileManagedZIO

  6. final def foldWhileManagedZIO[R1 <: R, E1 >: E, S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:

    Stream(1)
      .forever                                // an infinite Stream of 1's
      .fold(0)(_ <= 4)((s, a) => UIO(s + a))  // Managed[Nothing, Int]
      .use(ZIO.succeed)                       // UIO[Int] == 5
    cont

    function which defines the early termination condition

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldWhileManagedZIO

  7. final def foreachChunkManaged[R1 <: R, E1 >: E](f: (Chunk[A]) ⇒ ZIO[R1, E1, Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runForeachChunk, but returns a ZManaged so the finalization order can be controlled.

    Like ZStream#runForeachChunk, but returns a ZManaged so the finalization order can be controlled.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runForeachChunkManaged

  8. final def foreachManaged[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#foreach, but returns a ZManaged so the finalization order can be controlled.

    Like ZStream#foreach, but returns a ZManaged so the finalization order can be controlled.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) run runForeachManaged

  9. final def foreachWhileManaged[R1 <: R, E1 >: E](f: (A) ⇒ ZIO[R1, E1, Boolean])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runForeachWhile, but returns a ZManaged so the finalization order can be controlled.

    Like ZStream#runForeachWhile, but returns a ZManaged so the finalization order can be controlled.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runForeachWhileManaged

  10. final def intoHubManaged[R1 <: R, E1 >: E](hub: ⇒ ZHub[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#intoHub, but provides the result as a ZManaged to allow for scope composition.

    Like ZStream#intoHub, but provides the result as a ZManaged to allow for scope composition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runIntoHubManaged

  11. final def intoManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#into, but provides the result as a ZManaged to allow for scope composition.

    Like ZStream#into, but provides the result as a ZManaged to allow for scope composition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runIntoQueueManaged

  12. final def intoQueueManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#ntoQueue, but provides the result as a ZManaged to allow for scope composition.

    Like ZStream#ntoQueue, but provides the result as a ZManaged to allow for scope composition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runIntoQueueManaged

  13. final def runFoldManagedM[R1 <: R, E1 >: E, S](s: ⇒ S)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldManagedZIO

  14. final def runFoldWhileManagedM[R1 <: R, E1 >: E, S](s: ⇒ S)(cont: (S) ⇒ Boolean)(f: (S, A) ⇒ ZIO[R1, E1, S])(implicit trace: ZTraceElement): ZManaged[R1, E1, S]

    Permalink

    Executes an effectful fold over the stream of values.

    Executes an effectful fold over the stream of values. Returns a managed value that represents the scope of the stream. Stops the fold early when the condition is not fulfilled. Example:

    Stream(1)
      .forever                                // an infinite Stream of 1's
      .fold(0)(_ <= 4)((s, a) => UIO(s + a))  // Managed[Nothing, Int]
      .use(ZIO.succeed)                       // UIO[Int] == 5
    cont

    function which defines the early termination condition

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runFoldWhileManagedZIO

  15. final def runIntoElementsManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Exit[Option[E1], A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.

    Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runIntoQueueElementsManaged

  16. final def runIntoManaged[R1 <: R, E1 >: E](queue: ⇒ ZQueue[R1, Nothing, Nothing, Any, Take[E1, A], Any])(implicit trace: ZTraceElement): ZManaged[R1, E1, Unit]

    Permalink

    Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.

    Like ZStream#runInto, but provides the result as a ZManaged to allow for scope composition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2.0.0) use runIntoQueueManaged

Inherited from AnyVal

Inherited from Any

Ungrouped