sealed trait Take[+E, +A] extends Product with Serializable
A Take[E, A] represents a single take from a queue modeling a stream of
values. A Take may be a failure cause Cause[E], an element value A
or an end-of-stream marker.
- Self Type
- Take[E, A]
- Alphabetic
- By Inheritance
- Take
- Serializable
- Product
- Equals
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
Concrete 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])
- final def flatMap[E1 >: E, B](f: (A) => Take[E1, B]): Take[E1, B]
Creates a
takewith element valueBobtained by transforming value of typeAby applying functionf.Creates a
takewith element valueBobtained by transforming value of typeAby applying functionf. Iftakeis a failureTake.Failor an end-of-stream markerTake.Endoriginaltakeinstance is returned. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isFailure: Boolean
Checks if this
takeis a failure (Take.Fail). - final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def map[B](f: (A) => B): Take[E, B]
Transforms
Take[E, A]toTake[E, B]by applying functionfto an element value iftakeis not failure or end-of-stream marker. - 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 productElementName(n: Int): String
- Definition Classes
- Product
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def productIterator: Iterator[Any]
- Definition Classes
- Product
- def productPrefix: String
- Definition Classes
- Product
- 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()
- final def zip[E1 >: E, B](that: Take[E1, B]): Take[E1, (A, B)]
Zips this
takeand the specified one together, producing atakewith tuple of their values. - final def zipWith[E1 >: E, B, C](that: Take[E1, B])(f: (A, B) => C): Take[E1, C]
Zips this
takeand the specified one together, producingtakewith a valueCby applying provided functionfto values from bothtakes.Zips this
takeand the specified one together, producingtakewith a valueCby applying provided functionfto values from bothtakes. In case bothtakesareTake.Fail,takewith combined cause will be produced. Otherwise, if one of this or thattakeisTake.FailorTake.Endthat one will be returned.