Observable

trait Observable

General Observable

General Observable is the root interface of all observable types.

Note: Its only method is protected, but can be accessed through companion method

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

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

  pro() = 1

  // Output
  Change detected
Companion
object
Source
__.scala
class Object
trait Matchable
class Any