Fork me on GitHub
#core-async
<
2017-04-06
>
dergutemoritz16:04:53

I'm looking for a name for a function that works like merge in that it "[t]akes a collection of source channels and returns a channel which contains all values taken from them" but closes as soon as any of the passed channels closes rather than all of them (which is what merge does).

dergutemoritz16:04:58

Well, maybe a better name than merge*, that is 😄

dergutemoritz17:04:30

Just realized that merge is basically a disjunction operator for channels while what I'm proposing would be the analogous conjunction ...

dergutemoritz17:04:18

Naming them or and and would be a bit obscure though, I guess 🙂