Skip to content

Commit

Permalink
0.3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
lihaoyi committed Nov 5, 2019
1 parent 35d3af1 commit 1d52dd1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cask/actor/src/Actors.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit 1d52dd1

Please sign in to comment.