See attached image. Assume every box is an async process, my goal is to make it as concurrent as possible and am exploring the different effect modules to best do that. I'm struggling to express this with plain effects, specifically C depending on B and D, while still wanting to feed B and D into f without delay. I can only making it work by delaying some parts, e.g. by doing a
all(B, D)
all(B, D)
, and then feeding that to both f and C.
I'm thinking PubSub is the only solution here for efficient concurrency, while plain effects would keep things simple, trading efficiency. Thoughts?