How to split and dispatch an async control-flow using Continuations?

后端 未结 3 775
南旧
南旧 2021-02-05 15:17

I have an asynchronous control-flow like the following:

ActorA ! DoA(dataA, callback1, callbackOnErrorA)

def callback1() = {
  ...
  ActorB ! DoB(dataB, callbac         


        
3条回答
  •  抹茶落季
    2021-02-05 15:59

    See Akka's Futures and how to compose them or scalaz's Promises, they are nearly the same, there are only slight differences.

提交回复
热议问题