uliluckas
09/24/2019, 9:09 PMKProperty
?
if there was, one could write extension functions, depending on the delegate type. I.e.
fun KProperty<*, BehaviorRelayDelegate>.subscribe(O: Observer)
and use it like
val v : Int by BehaviorRelayDelegate(0)
::v.subscribe { Log("Value changed to $it" }
v = 2
val v1 = v
ilya.gorbunov
09/24/2019, 10:25 PMKProperty
cannot expose that detail, i.e. the delegate type.