Object/Class

zio.stream

ZSink

Related Docs: class ZSink | package stream

Permalink

object ZSink extends ZSinkPlatformSpecificConstructors

Linear Supertypes
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]

    Permalink

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 Push

    Permalink
  5. def apply[R, E, I, Z](push: ZManaged[R, Nothing, Push[R, E, I, Z]]): ZSink[R, E, I, Z]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def collectAll[A]: ZSink[Any, Nothing, A, List[A]]

    Permalink

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

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

    Permalink

    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.

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    Creates a sink halting with the specified Throwable.

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

    Permalink

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

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

    Permalink

    A sink that ignores its inputs.

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  17. def fail[E](e: ⇒ E): ZSink[Any, E, Any, Nothing]

    Permalink

    A sink that always fails with the specified error.

  18. def finalize(): Unit

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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.

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

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

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

    Permalink

    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.

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

    Permalink

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

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

    Permalink

    Creates a single-value sink produced from an effect

  29. def fromPush[R, E, I, Z](sink: Push[R, E, I, Z]): ZSink[R, E, I, Z]

    Permalink
  30. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  31. def halt[E](e: ⇒ Cause[E]): ZSink[Any, E, Any, Nothing]

    Permalink

    Creates a sink halting with a specified cause.

  32. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  33. def head[I]: ZSink[Any, Nothing, I, Option[I]]

    Permalink

    Creates a sink containing the first value.

  34. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  35. def last[I]: ZSink[Any, Nothing, I, Option[I]]

    Permalink

    Creates a sink containing the last value.

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

    Permalink
    Definition Classes
    AnyRef
  37. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  39. def succeed[Z](z: ⇒ Z): ZSink[Any, Nothing, Any, Z]

    Permalink

    A sink that immediately ends with the specified value.

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

    Permalink

    A sink that sums incoming numeric values.

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

    Permalink
    Definition Classes
    AnyRef
  42. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  43. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped