- kotlin upgrade test util fix

This commit is contained in:
2024-06-27 10:56:40 +01:00
parent 7e405a5151
commit 72d39f201f

View File

@@ -16,7 +16,7 @@ fun <T> LiveData<T>.getOrAwaitValue(
var data: T? = null
val latch = CountDownLatch(1)
val observer = object : Observer<T> {
override fun onChanged(o: T?) {
override fun onChanged(o: T) {
data = o
latch.countDown()
this@getOrAwaitValue.removeObserver(this)