Saiedmomen
08/15/2019, 5:57 PMkingsley
08/15/2019, 6:21 PMFlowCollector
is a Kotlin interface.
However, I believe what you’re looking for is the extension that takes suspend (T) -> Unit
, but you’ll need to explicitly import kotlinx.coroutines.flow.collect
Saiedmomen
08/15/2019, 6:41 PMelizarov
08/16/2019, 1:21 PMimport kotlinx.coroutines.flow.*
and be happy.