I want to construct a promise chain as below. The arrows represent dependence: B needs the output of A; C needs the outputs of both A and B.
Since it is not simply a chain but is a net, I don't know how to do it in an elegant way. My idea is to let the output of B contain the output of A, and pass it all together to C through edge (B,C). I guess it's probably not the best way to do it because there should be some method by passing the result of A directly to C.