Futures for blocking calls in Scala

后端 未结 2 1926

The Akka documentation says:

you may be tempted to just wrap the blocking call inside a Future and work with that instead, but this strategy is to
2条回答
  •  深忆病人
    2021-02-14 23:57

    Akka itself implements all this, you can wrap your blocking calls into Actors and then use dispatchers to control execution thread pools.

提交回复
热议问题