Tolriq
06/24/2023, 11:14 AMcombine(flow1,flow2) { slowJob() }.statein()
Have the slowjob cancelled when one of the source flow emit again?Joffrey
06/24/2023, 11:20 AMcombine
in a long time, but isn't it by default how it works? Is slowJob()
cancellable?Tolriq
06/24/2023, 11:23 AMTolriq
06/24/2023, 11:27 AMkevin.cianfarini
06/24/2023, 11:40 AMcombine(flow1, flow2, ::Pair).mapLatest { (a, b) -> slowJob(a, b) }.stateIn()
Tolriq
06/24/2023, 1:17 PM