Is there a flow operator to wait for collection an...
# android
l
Is there a flow operator to wait for collection and transform the flow? Example: the upstream flow emits string values like A, B, C, the number is fix. What i'm looking for is: downstream flow waits until A, B, C is collected and converts them to a
List<String>
. What I'm not looking for: add single items A, B, C to a List.
x
You could inspire in this thread about collecting all elements in a Flow and use that in combination with the List factory function