zokipirlo
01/06/2023, 2:43 PMViewModel
and CoroutineWorker(WorkManager)
. Point is that in viewmodel I can't create worker and vise versa, so they can't communicate directly. Here ViewModel is producing hls chunks (ts files) and worker would upload them when new is created. I can make one object Repo
which would connect both pieces but I don't know what to use inside, Channels, Flow? In worker I have one suspend function which need to be blocked while not everything is uploaded. Would be glad if someone could help me with that ☺️ Thanks!kevin.cianfarini
01/06/2023, 3:20 PMzokipirlo
01/06/2023, 9:08 PMyschimke
01/07/2023, 9:32 PMyschimke
01/07/2023, 11:07 PM