<Android WorkManager getting reference to Worker c...
# stackoverflow
u
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...