hey guys is it possible to use flows with the `sel...
# coroutines
d
hey guys is it possible to use flows with the
select
builder? something like this
Copy code
flow {
 emit(select {
  someFlow1.onCollect()
  someFlow2.onCollect()
 })
}
n
I can only guess at what you are hoping such code would do. Maybe you are looking for:
Copy code
merge(someFlow1, someFlow2).first()
u
You could convert your flow to channel first
g
I wouldn't convert to channel without some really good reason
u
True
d
i just got used to
select
clause so wanted to use it further with flows. well, i guess merge/combine is ok too for my use cases.