aishwaryabhishek3
04/01/2024, 12:40 PMthis
inside SAM interface ? Pasting code as I don’t know why I am not getting option to attach Images . this@Observer gives error 'this' is not defined in this context
val observer = Observer<T> {
data = it
latch.countDown()
this@getOrAwaitValue.removeObserver(this@Observer)
}
ephemient
04/01/2024, 4:01 PMval observer = object : Observer<T> {
override fun ???() {
removeObserver(this)
}
}
aishwaryabhishek3
04/01/2024, 4:04 PMephemient
04/01/2024, 4:05 PM