Packages

object ZSink extends ZSinkPlatformSpecific

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

Type Members

  1. type Step[+S, +A0] = ZSink.StepModule.Step[S, A0]
  2. trait StepModule extends AnyRef

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. val Step: StepModule
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. final def await[A]: ZSink[Any, Unit, Nothing, A, A]

    Creates a sink that waits for a single value to be produced.

  7. def clone(): AnyRef
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  8. final def collectAll[A]: ZSink[Any, Nothing, Nothing, A, List[A]]

    Creates a sink accumulating incoming values into a list.

  9. final def collectAllWhile[A](p: (A) => Boolean): ZSink[Any, Nothing, A, A, List[A]]

    Accumulates incoming elements into a list as long as they verify predicate p.

  10. final def collectAllWhileM[R, E, A](p: (A) => ZIO[R, E, Boolean]): ZSink[R, E, A, A, List[A]]

    Accumulates incoming elements into a list as long as they verify effectful predicate p.

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

    Creates a sink halting with the specified Throwable.

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

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

  13. final def drain: ZSink[Any, Nothing, Nothing, Any, Unit]

    Creates a sink consuming all incoming values until completion.

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

    Creates a sink failing with a value of type E.

  17. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  18. final def fold[A0, A, S](z: S)(f: (S, A) => Step[S, A0]): ZSink[Any, Nothing, A0, A, S]

    Creates a sink by folding over a structure of type S.

  19. final def foldLeft[A0, A, S](z: S)(f: (S, A) => S): ZSink[Any, Nothing, A0, A, S]

    Creates a sink by folding over a structure of type S.

  20. final def foldM[R, E, A0, A, S](z: S)(f: (S, A) => ZIO[R, E, Step[S, A0]]): ZSink[R, E, A0, A, S]

    Creates a sink by effectfully folding over a structure of type S.

  21. final def foldUntil[S, A](z: S, max: Long)(f: (S, A) => S): ZSink[Any, Nothing, A, A, S]

    Creates a sink that folds elements of type A into a structure of type S until max elements have been folded.

    Creates a sink that folds elements of type A into a structure of type S until max elements have been folded.

    Like ZSink.foldWeighted, but with a constant cost function of 1.

  22. final def foldUntilM[R, E, S, A](z: S, max: Long)(f: (S, A) => ZIO[R, E, S]): ZSink[R, E, A, A, S]

    Creates a sink that effectfully folds elements of type A into a structure of type S until max elements have been folded.

    Creates a sink that effectfully folds elements of type A into a structure of type S until max elements have been folded.

    Like ZSink.foldWeightedM, but with a constant cost function of 1.

  23. final def foldWeighted[A, S](z: S)(costFn: (A) => Long, max: Long)(f: (S, A) => S): ZSink[Any, Nothing, A, A, S]

    Creates a sink that folds elements of type A into a structure of type S, until max worth of elements (determined by the costFn) have been folded.

  24. final def foldWeightedM[R, R1 <: R, E, E1 >: E, A, S](z: S)(costFn: (A) => ZIO[R, E, Long], max: Long)(f: (S, A) => ZIO[R1, E1, S]): ZSink[R1, E1, A, A, S]

    Creates a sink that effectfully folds elements of type A into a structure of type S, until max worth of elements (determined by the costFn) have been folded.

  25. final def fromEffect[R, E, B](b: => ZIO[R, E, B]): ZSink[R, E, Nothing, Any, B]

    Creates a single-value sink produced from an effect

  26. final def fromFunction[A, B](f: (A) => B): ZSink[Any, Unit, Nothing, A, B]

    Creates a sink that purely transforms incoming values.

  27. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  28. final def halt[E](e: Cause[E]): ZSink[Any, E, Nothing, Any, Nothing]

    Creates a sink halting with a specified cause.

  29. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  30. final def identity[A]: ZSink[Any, Unit, Nothing, A, A]

    Creates a sink by that merely passes on incoming values.

  31. final def ignoreWhile[A](p: (A) => Boolean): ZSink[Any, Nothing, A, A, Unit]

    Creates a sink by starts consuming value as soon as one verifies the predicate p.

  32. final def ignoreWhileM[R, E, A](p: (A) => ZIO[R, E, Boolean]): ZSink[R, E, A, A, Unit]

    Creates a sink by starts consuming value as soon as one verifies the effectful predicate p.

  33. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  34. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  35. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  36. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  37. final def pull1[R, R1 <: R, E, A0, A, B](end: ZIO[R1, E, B])(input: (A) => ZSink[R, E, A0, A, B]): ZSink[R1, E, A0, A, B]

    Returns a sink that must at least perform one extraction or else will "fail" with end.

  38. final def read1[E, A](e: (Option[A]) => E)(p: (A) => Boolean): ZSink[Any, E, A, A, A]

    Creates a sink that consumes the first value verifying the predicate p or fails as soon as the sink won't make any more progress.

  39. final def succeedLazy[B](b: => B): ZSink[Any, Nothing, Nothing, Any, B]

    Creates a single-value sink from a lazily-evaluated value.

  40. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  41. final def throttleEnforce[A](units: Long, duration: Duration, burst: Long = 0)(costFn: (A) => Long): ZManaged[Clock, Nothing, ZSink[Clock, Nothing, Nothing, A, Option[A]]]

    Creates a sink which throttles input elements of type A according to the given bandwidth parameters using the token bucket algorithm.

    Creates a sink which throttles input elements of type A according to the given bandwidth parameters using the token bucket algorithm. The sink allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Elements that do not meet the bandwidth constraints are dropped. The weight of each element is determined by the costFn function. Elements are mapped to Option[A], and None denotes that a given element has been dropped.

  42. final def throttleEnforceM[R, E, A](units: Long, duration: Duration, burst: Long = 0)(costFn: (A) => ZIO[R, E, Long]): ZManaged[Clock, Nothing, ZSink[R with Clock, E, Nothing, A, Option[A]]]

    Creates a sink which throttles input elements of type A according to the given bandwidth parameters using the token bucket algorithm.

    Creates a sink which throttles input elements of type A according to the given bandwidth parameters using the token bucket algorithm. The sink allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. Elements that do not meet the bandwidth constraints are dropped. The weight of each element is determined by the costFn effectful function. Elements are mapped to Option[A], and None denotes that a given element has been dropped.

  43. final def throttleShape[A](units: Long, duration: Duration, burst: Long = 0)(costFn: (A) => Long): ZManaged[Clock, Nothing, ZSink[Clock, Nothing, Nothing, A, A]]

    Creates a sink which delays input elements of type A according to the given bandwidth parameters using the token bucket algorithm.

    Creates a sink which delays input elements of type A according to the given bandwidth parameters using the token bucket algorithm. The sink allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each element is determined by the costFn function.

  44. final def throttleShapeM[R, E, A](units: Long, duration: Duration, burst: Long = 0)(costFn: (A) => ZIO[R, E, Long]): ZManaged[Clock, Nothing, ZSink[R with Clock, E, Nothing, A, A]]

    Creates a sink which delays input elements of type A according to the given bandwidth parameters using the token bucket algorithm.

    Creates a sink which delays input elements of type A according to the given bandwidth parameters using the token bucket algorithm. The sink allows for burst in the processing of elements by allowing the token bucket to accumulate tokens up to a units + burst threshold. The weight of each element is determined by the costFn effectful function.

  45. def toString(): String
    Definition Classes
    AnyRef → Any
  46. def utf8Decode(bufferSize: Int = ZStreamChunk.DefaultChunkSize): ZSink[Any, Nothing, Byte, Byte, String]

    Decodes individual bytes into a String using UTF-8.

    Decodes individual bytes into a String using UTF-8. Up to bufferSize bytes will be buffered by the sink.

    This sink uses the String constructor's behavior when handling malformed byte sequences.

  47. val utf8DecodeChunk: ZSink[Any, Nothing, Chunk[Byte], Chunk[Byte], String]

    Decodes chunks of bytes into a String.

    Decodes chunks of bytes into a String.

    This sink uses the String constructor's behavior when handling malformed byte sequences.

  48. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  49. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  50. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from ZSinkPlatformSpecific

Inherited from AnyRef

Inherited from Any

Ungrouped