abstract class AbstractOffer[T] extends Offer[T]
Abstract Offer
class for Java compatibility.
- Alphabetic
- By Inheritance
- AbstractOffer
- Offer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new AbstractOffer()
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
- def ?: Future[T]
Alias for synchronize.
Alias for synchronize.
- Definition Classes
- Offer
- def ??: T
Synchronize, blocking for the result.
Synchronize, blocking for the result.
- Definition Classes
- Offer
- def andThen(f: => Unit): Unit
Synchronize (discarding the value), and then invoke the given closure.
Synchronize (discarding the value), and then invoke the given closure. Convenient for loops.
- Definition Classes
- Offer
- def apply[U](f: (T) => U): Offer[U]
Synonym for
map()
.Synonym for
map()
. Useful in combination withOffer.choose()
andOffer.select()
- Definition Classes
- Offer
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[U](f: => U): Offer[U]
Like {{map}}, but to a constant (call-by-name).
Like {{map}}, but to a constant (call-by-name).
- Definition Classes
- Offer
- 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 foreach(f: (T) => Unit): Unit
Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value.
Synchronize on this offer indefinitely, invoking the given {{f}} with each successfully synchronized value. A receiver can use this to enumerate over all received values.
- Definition Classes
- Offer
- 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
- def map[U](f: (T) => U): Offer[U]
Map this offer of type {{T}} into one of type {{U}}.
Map this offer of type {{T}} into one of type {{U}}. The translation (performed by {{f}}) is done after the {{Offer[T]}} has successfully synchronized.
- Definition Classes
- Offer
- def mapConst[U](c: U): Offer[U]
Java-friendly analog of
const()
.Java-friendly analog of
const()
.- Definition Classes
- Offer
- def mapConstFunction[U](f: => U): Offer[U]
Java-friendly analog of
const()
.Java-friendly analog of
const()
.- Definition Classes
- Offer
- 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 or[U](other: Offer[U]): Offer[Either[T, U]]
- Definition Classes
- Offer
- def orElse[U >: T](other: Offer[U]): Offer[U]
An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead.
An offer that, when synchronized, attempts to synchronize {{this}} immediately, and if it fails, synchronizes on {{other}} instead. This is useful for providing default values. Eg.:
offer orElse Offer.const { computeDefaultValue() }
- Definition Classes
- Offer
- def sync(): Future[T]
Synchronizes this offer, returning a future representing the result of the synchronization.
Synchronizes this offer, returning a future representing the result of the synchronization.
- Definition Classes
- Offer
- def syncWait(): T
Synchronize this offer, blocking for the result.
Synchronize this offer, blocking for the result. See {{sync()}} and {{com.twitter.util.Future.apply()}}
- Definition Classes
- Offer
- 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()