core-async

ghaskins 2024-06-13T19:24:04.612899Z

are there any official “1:M” type constructs in core.async? I find myself needing to sometimes do something like

(fn [x ch] (async/onto-chan! ch (some-transform x)))
Where (some-transform) may have a different shape from x

2024-06-13T20:29:26.670849Z

merge and into exist too

ghaskins 2024-06-13T19:25:43.829229Z

So I use core.async/pipeline-async for this, but it feels awkward enough that I wonder if I am doing something suboptimally