How to properly use akka actors in scala

后端 未结 2 1580
后悔当初
后悔当初 2021-01-16 19:33

I\'m relatively new to the idea of actors, and was wondering if I could get some critique on what I am doing. For part of a project, I need to have an actor that tells a col

2条回答
  •  礼貌的吻别
    2021-01-16 20:16

    The strength of Scala is its hybrid of OO and Functional programming, scala developer don't need hate var, if you do, you may need choose Haskell.

    In your case, I think the only thing you need to change is to make actors as private

提交回复
热议问题