Fork me on GitHub
#core-async
<
2019-04-01
>
souenzzo09:04:54

@idiomancy it's not the case of use a transducer on channel?

idiomancy12:04:39

as is frequently the case with core.async, I ended up completely rethinking my approach

idiomancy22:04:06

Oh no!! I saw mix, and I thought it was like the inverse of mult, like, "put value on out-chan when and only when a value has been consumed from each of the inputs" like, I thought if there was (toggle (mix out) {in1 {} in2 {}}) that takes to out would park until a put to both in1 and in2 had occurred

idiomancy22:04:13

is there a thing that does that??

idiomancy22:04:57

blocking-mix or something

noisesmith23:04:51

@idiomancy wouldn't (async/map f in1 in2) do this - calling f for each pair of values from in1 / in2 and always waiting for both?