Andrew Gazelka
05/02/2021, 8:57 PM// a method ...
val (sharedFlow, job) = flow.shareIn(scope, SharingStarted.Eagerly)
jobs.add(job)
return sharedFlowDominaezzz
05/02/2021, 9:14 PMjobs ? You could maybe create a CoroutineScope just to share the flow and you would have a Job with a single Job child.Andrew Gazelka
05/02/2021, 9:15 PMjobs is so I can cancel the flowAndrew Gazelka
05/02/2021, 9:32 PMAndrew Gazelka
05/02/2021, 9:32 PMAndrew Gazelka
05/02/2021, 9:33 PMDominaezzz
05/03/2021, 9:32 AMscope and Job then. Much easier imo.