fitermay
08/15/2022, 9:50 PMFrancesc
08/15/2022, 10:25 PMzip
on flow A and B which will emit when both flow A and flow B emit.
https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines.flow/zip.htmlephemient
08/15/2022, 10:30 PMephemient
08/15/2022, 10:30 PMTrevor Stone
08/15/2022, 11:07 PMcombine
but zip is only once each flow has a new value. With zip if flow A emitted a
and flow B emitted 1,2,3,4,5
and zip combined the values as strings, only a1
would emit downstream, combine
would do a1,a2,a3,a4,a5
ephemient
08/15/2022, 11:10 PMfitermay
08/15/2022, 11:36 PMfitermay
08/15/2022, 11:37 PMFrancesc
08/15/2022, 11:37 PMfitermay
08/15/2022, 11:38 PMFrancesc
08/15/2022, 11:38 PMcombine
, not zip
Francesc
08/15/2022, 11:40 PMzip
emits when both flows emit. If one flow keeps emitting the zipped flow won't emit until the other flow has a new valuefitermay
08/15/2022, 11:44 PMfitermay
08/15/2022, 11:44 PMFrancesc
08/15/2022, 11:45 PMTrevor Stone
08/15/2022, 11:46 PMfitermay
08/15/2022, 11:46 PMfitermay
08/15/2022, 11:46 PMFrancesc
08/15/2022, 11:48 PMzip
is the best fitfitermay
08/15/2022, 11:50 PMfitermay
08/15/2022, 11:51 PMFrancesc
08/15/2022, 11:53 PM