mirror of
https://github.com/hmalik144/Weather-apps.git
synced 2025-12-10 02:05:20 +00:00
- kotlin upgrade test util fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user