object Offer
Note: There is a Java-friendly API for this object: com.twitter.concurrent.Offers.
- Alphabetic
- By Inheritance
- Offer
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 choose[T](evs: Offer[T]*): Offer[T]
The offer that chooses exactly one of the given offers.
The offer that chooses exactly one of the given offers. If there are any Offers that are synchronizable immediately, one is chosen at random.
- Annotations
- @varargs()
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def const[T](x: => T): Offer[T]
A constant offer: synchronizes the given value always.
A constant offer: synchronizes the given value always. This is call-by-name and a new value is produced for each
prepare()
.Note: Updates here must also be done at
Offers.newConstOffer
. - 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 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
- val never: Offer[Nothing]
An offer that never synchronizes.
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def prioritize[T](evs: Offer[T]*): Offer[T]
The offer that chooses exactly one of the given offers.
The offer that chooses exactly one of the given offers. If there are any Offers that are synchronizable immediately, the first available in the sequence is selected.
- def select[T](ofs: Offer[T]*): Future[T]
Offer.choose()
and synchronize it. - final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def timeout(timeout: Duration)(implicit timer: Timer): Offer[Unit]
An offer that is available after the given time out.
- 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 LostSynchronization extends Exception