``` class Bar{ private val thingSubject = PublishS...
# getting-started
r
Copy code
class Bar{
private val thingSubject = PublishSubject.create<Int>()
var thing: Int = 0
  set(value) {
    thingSubject.next(value)
  }

fun getThingObservable() = thingSubject.asObservable()
}