Tolriq
11/20/2021, 10:45 AMflowX.drop(1)
And would like to have a function that collect them all in a scope and call 1 function when any value is received (would be nice it the result was a flow so I can debounce too)
So some kind of combine but without types and transform and supporting any number of input flows.Joffrey
11/20/2021, 11:00 AMcombine(flow1, flow2, flow3) { Unit }
Tolriq
11/20/2021, 11:16 AMJoffrey
11/20/2021, 11:17 AMAny
explicitly?Joffrey
11/20/2021, 11:21 AMcombine<Any, Unit>(...)
okarm
11/20/2021, 11:28 AMcombine(flow1, flow2, flow3) { _ -> Unit }
Tolriq
11/20/2021, 11:40 AM{ _ -> }
does work, IDE says I should remove it but then it complains again about types ....Tolriq
11/20/2021, 11:41 AMJoffrey
11/20/2021, 11:45 AMflattenConcat
? This won't have the effect you want, it will first give you all elements from the first flow until completion and then the elements of the next flow, etc. So you won't have interleaved events from different flowsTolriq
11/20/2021, 11:48 AMOrhan Tozan
11/21/2021, 12:10 AM