object ZSink extends ZSinkPlatformSpecific
- Alphabetic
- By Inheritance
- ZSink
- ZSinkPlatformSpecific
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
- type Step[+S, +A0] = ZSink.StepModule.Step[S, A0]
- trait StepModule extends AnyRef
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- val Step: StepModule
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def await[A]: ZSink[Any, Unit, Nothing, A, A]
Creates a sink that waits for a single value to be produced.
- def clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def collectAll[A]: ZSink[Any, Nothing, Nothing, A, List[A]]
Creates a sink accumulating incoming values into a list.
- 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. - 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. - final def drain: ZSink[Any, Nothing, Nothing, Any, Unit]
Creates a sink consuming all incoming values until completion.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def fail[E](e: E): ZSink[Any, E, Nothing, Any, Nothing]
Creates a sink failing with a value of type
E. - def finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- 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. - 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. - 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. - 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
- final def fromFunction[A, B](f: (A) => B): ZSink[Any, Unit, Nothing, A, B]
Creates a sink that purely transforms incoming values.
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def identity[A]: ZSink[Any, Unit, A, A, A]
Creates a sink by that merely passes on incoming values.
- 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. - 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. - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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. - 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
por fails as soon as the sink won't make any more progress. - final def succeedLazy[B](b: => B): ZSink[Any, Nothing, Nothing, Any, B]
Creates a single-value sink from a lazily-evaluated value.
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()