scalaz.stream.async.mutable

Ref

trait Ref[A] extends AnyRef

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

Abstract Value Members

  1. abstract def isSet: Boolean

    Returns true, when this ref is set.

    Returns true, when this ref is set. Will return true as well when this Ref is failed or finished

Concrete Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

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

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. def close: Unit

    Indicate that the value is no longer valid.

    Indicate that the value is no longer valid. Any attempts to set this Ref after a close will be ignored. This Ref is finished from now on

  9. def compareAndSet(f: (Option[A]) ⇒ Option[A], cb: (\/[Throwable, Option[A]]) ⇒ Unit): Unit

    Sets the current value of this Ref and invoke callback with result of f.

    Sets the current value of this Ref and invoke callback with result of f. If this Ref has not been set the input to f is None. Additionally if f returns None, its no-op and callback will be invoked with current value. In case the Ref is finished will invoke callback with -\/(End) and will be no-op If Ref is failed, callback is invoked with -\/(ex) where ex is reason for failed Ref.

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

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

    Definition Classes
    AnyRef → Any
  12. def fail(error: Throwable): Unit

    Raise an asynchronous error for readers of this Ref.

    Raise an asynchronous error for readers of this Ref. Any attempts to set this Ref after the fail are ignored. This Ref is failed from now on.

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. def get(cb: (\/[Throwable, A]) ⇒ Unit): Unit

    Get the current value of this Ref.

    Get the current value of this Ref. If this Ref has not been set, the callback will be invoked later.

  15. def getAndSet(a: A, cb: (\/[Throwable, Option[A]]) ⇒ Unit): Unit

    Sets the current value of this Ref and returns previous value of the Ref.

    Sets the current value of this Ref and returns previous value of the Ref. If this Ref has not been set, cb is invoked with None and value is set. If this Ref has been finished and is no longer valid this has no effect and cb will be called with -\/(End)

  16. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  18. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  19. def modify(f: (A) ⇒ A): Unit

    Modify the current value of this Ref.

    Modify the current value of this Ref. If this Ref has not been set, or is finished this has no effect.

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

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

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

    Definition Classes
    AnyRef
  23. def set(a: A): Unit

    Sets the value inside this ref.

  24. def signal: Signal[A]

  25. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  26. def toString(): String

    Definition Classes
    AnyRef → Any
  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 AnyRef

Inherited from Any

Ungrouped