reactive

Observing

trait Observing extends AnyRef

Keeps a list of strong references. Used to control when observers can be garbage collected. The observable uses weak references to hold the observers, so that observers aren't retained in memory for the entire lifetime of the observable. Therefore, to make sure the observer isn't garbage collected too early, a reference to it is stored in an Observing. Usage: Most methods that add observers to an observable take an Observing as an implicit parameter, so usually you put an implicit Observing in the scope in question, and make sure it lasts as long as you need the observers to last. You can do this by having the containing class extends Observing (it contains an implicit pointing to itself), or by writing implicit val observing = new Observing {} or the like. You can also pass an Observing instance explicitly to any method that takes one, bypassing the implicit resolution mechanism.

Source
Observing.scala
Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. Observing
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

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[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  8. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  11. final def getClass(): java.lang.Class[_]

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

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

    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Definition Classes
    AnyRef
  17. def observe[T](s: Signal[T])(f: (T) ⇒ Unit): Unit

    You can write [observing.

    You can write [observing.] observe(signal){value => action} as an alternative syntax to signal.change.foreach{value => action} [(observing)]

  18. implicit val observing: Observing

    Places an implicit reference to 'this' in scope

  19. def on[T](e: EventSource[T])(f: (T) ⇒ Unit): Unit

    You can write [observing.

    You can write [observing.] on(eventStream){event => action} as an alternative syntax to eventStream.change.foreach{event => action} [(observing)]

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

    Definition Classes
    AnyRef
  21. def toString(): String

    Definition Classes
    AnyRef → Any
  22. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any