https://kotlinlang.org logo
Title
u

user

07/01/2022, 2:51 PM
Android WorkManager getting reference to Worker class I'm facing following problem: there's my class which inherits CoroutineWorker. Logic of this worker is complicated enough, in fact doWork() calls bunch of other routines inside and catches (collect) results of several StateFlows, like: override suspend fun doWork(): Result { //blah-blah withContext(Dispatchers.Default) { _scanResultState.collectLatest { //blah-blah } } return ... } Questions: Can I somehow return/put...