https://kotlinlang.org logo
r

rook

04/24/2018, 6:37 PM
Copy code
class Bar{
private val thingSubject = PublishSubject.create<Int>()
var thing: Int = 0
  set(value) {
    thingSubject.next(value)
  }

fun getThingObservable() = thingSubject.asObservable()
}