diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2019-11-05 09:17:16 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2019-11-05 09:17:16 +0800 |
commit | 1d52dd1c848d245c269a7a274602fdf57e47cac9 (patch) | |
tree | fd27d2968b991c94d7b97fb10f487a01be290521 /cask/actor | |
parent | 35d3af1cd09d36c31744d214f0cadc3dd2ac51b2 (diff) | |
download | cask-1d52dd1c848d245c269a7a274602fdf57e47cac9.tar.gz cask-1d52dd1c848d245c269a7a274602fdf57e47cac9.tar.bz2 cask-1d52dd1c848d245c269a7a274602fdf57e47cac9.zip |
0.3.50.3.5
Diffstat (limited to 'cask/actor')
-rw-r--r-- | cask/actor/src/Actors.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cask/actor/src/Actors.scala b/cask/actor/src/Actors.scala index 84975ba..50b3b4e 100644 --- a/cask/actor/src/Actors.scala +++ b/cask/actor/src/Actors.scala @@ -69,7 +69,9 @@ abstract class SimpleActor[T]()(implicit ac: Context) extends BaseActor[T]{ } abstract class StateMachineActor[T]()(implicit ac: Context) extends SimpleActor[T]() { - class State(val run: T => State = null) + class State(run0: T => State = null){ + def run = run0 + } protected[this] def initialState: State protected[this] var state: State = initialState def run(msg: T): Unit = { |