https://kotlinlang.org logo
#coroutines
Title
# coroutines
s

Scott Kruse

08/26/2021, 3:36 AM
I was getting
Unresolved reference: last
when referencing `
Copy code
import kotlinx.coroutines.flow.last
from a unit test. Any ideas?
Copy code
lateinit var list: MutableList<String>
stateFlow.toList(list)
assert(list.last() == "example")
this block works though ^
stateFlow.last()
wasn't working though 🤔
21 Views