object Take extends Serializable
- Alphabetic
- By Inheritance
- Take
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final case class Fail[+E](value: Cause[E]) extends Take[E, Nothing] with Product with Serializable
Represents a failure
takewith aCause[E]. - final case class Value[+A](value: A) extends Take[Nothing, A] with Product with Serializable
Represents
takewith value of typeAretrieved from queue modeling stream.
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def fromEffect[R, E, A](zio: ZIO[R, E, A]): ZIO[R, Nothing, Take[E, A]]
Creates a
Takefrom an effect. - def fromPull[R, E, A](pull: Pull[R, E, A]): ZIO[R, Nothing, Take[E, A]]
Creates effect from
Pull[R, E, A]that does not fail, but succeeds with theTake[E, A].Creates effect from
Pull[R, E, A]that does not fail, but succeeds with theTake[E, A]. Error from stream when pulling is converted toTake.Fail, end of stream toTake.End. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- 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()
- def option[E, A](io: IO[E, Take[E, A]]): IO[E, Option[A]]
Creates new effect with value
Option[A]or errorEfrom effect returningTake[E, A].Creates new effect with value
Option[A]or errorEfrom effect returningTake[E, A]. Result of stream reading is mapped to effect value as follows: terminated stream is mapped toNone, valuearead from stream is mapped toSome(a). In case of error from stream reading, effect withEis returned. - 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()
- object End extends Take[Nothing, Nothing] with Product with Serializable
Represents end of stream marker.