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: Trace): 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: Trace): 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: Trace): 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: Trace): 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) => ZIO.succeed(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: Trace): 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: Trace): 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: Trace): ZManaged[R1, E1, Unit]

    Permalink

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

  14. final def runIntoHubManaged[E1 >: E, A1 >: A](hub: ⇒ Hub[Take[E1, A1]])(implicit trace: Trace): ZManaged[R, E1, Unit]

    Permalink

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

  15. final def runIntoQueueElementsManaged(queue: ⇒ Enqueue[Exit[Option[E], A]])(implicit trace: Trace): ZManaged[R, E, Unit]

    Permalink

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

  16. final def runIntoQueueManaged(queue: ⇒ Enqueue[Take[E, A]])(implicit trace: Trace): ZManaged[R, E, 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: Trace): ZManaged[R1, E1, B]

    Permalink
  18. def toString(): String

    Permalink
    Definition Classes
    Any

Inherited from AnyVal

Inherited from Any

Ungrouped