Packages

object ZSink extends ZSinkPlatformSpecificConstructors

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ZSink
  2. ZSinkPlatformSpecificConstructors
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. type Push[-R, +E, -I, +Z] = (Option[Chunk[I]]) ⇒ ZIO[R, Either[E, Z], Unit]

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. def apply[R, E, I, Z](push: ZManaged[R, Nothing, Push[R, E, I, Z]]): ZSink[R, E, I, Z]
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  7. def collectAll[A]: ZSink[Any, Nothing, A, List[A]]

    A sink that collects all of its inputs into a list.

  8. def collectAllToMap[A, K](key: (A) ⇒ K)(f: (A, A) ⇒ A): ZSink[Any, Nothing, A, Map[K, A]]

    A sink that collects all of its inputs into a map.

    A sink that collects all of its inputs into a map. The keys are extracted from inputs using the keying function key; if multiple inputs use the same key, they are merged using the f function.

  9. def collectAllToSet[A]: ZSink[Any, Nothing, A, Set[A]]

    A sink that collects all of its inputs into a set.

  10. val count: ZSink[Any, Nothing, Any, Long]

    A sink that counts the number of elements fed to it.

  11. def die(e: ⇒ Throwable): ZSink[Any, Nothing, Any, Nothing]

    Creates a sink halting with the specified Throwable.

  12. def dieMessage(m: ⇒ String): ZSink[Any, Nothing, Any, Nothing]

    Creates a sink halting with the specified message, wrapped in a RuntimeException.

  13. val drain: ZSink[Any, Nothing, Any, Unit]

    A sink that ignores its inputs.

  14. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  16. def fail[E](e: ⇒ E): ZSink[Any, E, Any, Nothing]

    A sink that always fails with the specified error.

  17. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def fold[I, S](z: S)(contFn: (S) ⇒ Boolean)(f: (S, I) ⇒ S): ZSink[Any, Nothing, I, S]

    A sink that folds its inputs with the provided function, termination predicate and initial state.

  19. def foldChunks[I, S](z: S)(contFn: (S) ⇒ Boolean)(f: (S, Chunk[I]) ⇒ S): ZSink[Any, Nothing, I, S]

    A sink that folds its input chunks with the provided function, termination predicate and initial state.

  20. def foldChunksM[R, E, I, S](z: S)(contFn: (S) ⇒ Boolean)(f: (S, Chunk[I]) ⇒ ZIO[R, E, S]): ZSink[R, E, I, S]

    A sink that effectfully folds its input chunks with the provided function, termination predicate and initial state.

    A sink that effectfully folds its input chunks with the provided function, termination predicate and initial state.

    This sink may terminate in the middle of a chunk and discard the rest of it. See the discussion on the ZSink class scaladoc on sinks vs. transducers.

  21. def foldLeft[I, S](z: S)(f: (S, I) ⇒ S): ZSink[Any, Nothing, I, S]

    A sink that folds its inputs with the provided function and initial state.

  22. def foldLeftChunks[I, S](z: S)(f: (S, Chunk[I]) ⇒ S): ZSink[Any, Nothing, I, S]

    A sink that folds its input chunks with the provided function and initial state.

  23. def foldLeftChunksM[R, E, I, S](z: S)(f: (S, Chunk[I]) ⇒ ZIO[R, E, S]): ZSink[R, E, I, S]

    A sink that effectfully folds its input chunks with the provided function and initial state.

  24. def foldLeftM[R, E, I, S](z: S)(f: (S, I) ⇒ ZIO[R, E, S]): ZSink[R, E, I, S]

    A sink that effectfully folds its inputs with the provided function and initial state.

  25. def foldM[R, E, I, S](z: S)(contFn: (S) ⇒ Boolean)(f: (S, I) ⇒ ZIO[R, E, S]): ZSink[R, E, I, S]

    A sink that effectfully folds its inputs with the provided function, termination predicate and initial state.

    A sink that effectfully folds its inputs with the provided function, termination predicate and initial state.

    This sink may terminate in the middle of a chunk and discard the rest of it. See the discussion on the ZSink class scaladoc on sinks vs. transducers.

  26. def foreach[R, E, I](f: (I) ⇒ ZIO[R, E, Any]): ZSink[R, E, I, Unit]

    A sink that executes the provided effectful function for every element fed to it.

  27. def fromEffect[R, E, Z](b: ⇒ ZIO[R, E, Z]): ZSink[R, E, Any, Z]

    Creates a single-value sink produced from an effect

  28. final def fromOutputStream(os: OutputStream): ZSink[Blocking, IOException, Byte, Long]

    Uses the provided OutputStream to create a ZSink that consumes byte chunks and writes them to the OutputStream.

    Uses the provided OutputStream to create a ZSink that consumes byte chunks and writes them to the OutputStream. The sink will yield the count of bytes written.

    The caller of this function is responsible for closing the OutputStream.

    Definition Classes
    ZSinkPlatformSpecificConstructors
  29. def fromPush[R, E, I, Z](sink: Push[R, E, I, Z]): ZSink[R, E, I, Z]
  30. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  31. def halt[E](e: ⇒ Cause[E]): ZSink[Any, E, Any, Nothing]

    Creates a sink halting with a specified cause.

  32. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  33. def head[I]: ZSink[Any, Nothing, I, Option[I]]

    Creates a sink containing the first value.

  34. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  35. def last[I]: ZSink[Any, Nothing, I, Option[I]]

    Creates a sink containing the last value.

  36. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  37. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  38. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  39. def succeed[Z](z: ⇒ Z): ZSink[Any, Nothing, Any, Z]

    A sink that immediately ends with the specified value.

  40. def sum[A](implicit A: Numeric[A]): ZSink[Any, Nothing, A, A]

    A sink that sums incoming numeric values.

  41. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  45. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  46. object Push

Inherited from AnyRef

Inherited from Any

Ungrouped