Using future callback inside akka actor

前端 未结 4 1614
我在风中等你
我在风中等你 2021-02-13 12:24

I\'ve found in Akka docs:

When using future callbacks, such as onComplete, onSuccess, and onFailure, inside actors you need to carefully avoid closing ove

4条回答
  •  滥情空心
    2021-02-13 13:11

    Maybe this can help. It is an experiment I did and the test is quite conclusive... however, it is still an experiment, so do not take that as an expertise.

    https://github.com/Adeynack/ScalaLearning/tree/master/ActorThreadingTest/src/main/scala/david/ActorThreadingTest

    Open to comments or suggestions, of course.

    Futures with actors is a subject I am very interested in.

提交回复
热议问题