https://kotlinlang.org logo
#android
Title
# android
a

aishwaryabhishek3

04/01/2024, 12:39 PM
Hi Folks , How do I reference
this
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
Copy code
val observer = Observer<T> {
        data = it
        latch.countDown()
        this@getOrAwaitValue.removeObserver(this@Observer)
    }