I have an asynchronous control-flow like the following:
ActorA ! DoA(dataA, callback1, callbackOnErrorA) def callback1() = { ... ActorB ! DoB(dataB, callbac
See Akka's Futures and how to compose them or scalaz's Promises, they are nearly the same, there are only slight differences.