com.twitter.concurrent

IVar

final class IVar[A] extends IVarField[A]

Linear Supertypes
IVarField[A], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. IVar
  2. IVarField
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new IVar()

Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def apply(timeout: Duration): Option[A]

  5. def apply(): A

    A blocking get.

    A blocking get. It won't cause a deadlock if the IVar is already defined because it does not attempt to defer getting a defined value.

  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def chained: IVar[A]

    Provide an IVar that is chained to this one.

    Provide an IVar that is chained to this one. This provides a happens-before relationship vis-a-vis *this* IVar. That is: an ordering that is visible to the consumer of this IVar (wrt. gets) is preserved via chaining.

    That is, to use in a manner that guarantees strict ordering of invocation, use the following pattern:

    val ivar: IVar[A]
    val next = ivar.chained
    ivar.get { _ => /* first action */ }
    next.get { _ => /* second action */ }
    Annotations
    @tailrec()
  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def depth: Int

  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def get(k: (A) ⇒ Unit): Unit

    Pass a block, 'k' which will be invoked when the value is available.

    Pass a block, 'k' which will be invoked when the value is available. Note that 'get' does not preserve ordering, that is: {{a.get(k); a.get(k')}} does not imply {{k}} happens-before {{k'}}.

    Annotations
    @tailrec()
  14. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  15. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  16. def isDefined: Boolean

    returns

    true if the value has been set.

    Annotations
    @tailrec()
  17. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  18. def merge(other: IVar[A]): Unit

    Merge other into this IVar.

    Merge other into this IVar. This does two things:

    1. this assumes waiters and chainers of other. 2. the state of other is changed to Linked(this).

    Note that two Done IVars can only be merged if their values are equal. An InvalidArgumentException is thrown, otherwise.

  19. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  20. final def notify(): Unit

    Definition Classes
    AnyRef
  21. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  22. def poll: Option[A]

    Annotations
    @tailrec()
  23. def set(value: A): Boolean

    Set the value - only the first call will be successful.

    Set the value - only the first call will be successful.

    returns

    true if the value was set successfully.

    Annotations
    @tailrec()
  24. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  25. def toString(): String

    Definition Classes
    IVar → AnyRef → Any
  26. def unget(k: (A) ⇒ Unit): Unit

    Remove the given closure {{k}} from the waiter list by object identity.

    Remove the given closure {{k}} from the waiter list by object identity.

    Annotations
    @tailrec()
  27. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  28. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  29. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from IVarField[A]

Inherited from AnyRef

Inherited from Any

Ungrouped