Observable

trait Observable

General Observable

General Observable is the root interface of all observable types.

Note: Its only method is protected (because it is to be used by tools), but can be accessed through companion method

  val pro = Pro.OM[Int](0)

  Observable.onObservableChange(pro)(() => "Change detected".tp)

  pro() = 1

  // Output
  Change detected
Source
__.scala
class java.lang.Object
trait scala.Matchable
class Any