Skip to content

Instantly share code, notes, and snippets.

@pjazdzewski1990
Last active January 18, 2016 22:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pjazdzewski1990/d4972834f921ad60c6e8 to your computer and use it in GitHub Desktop.
Save pjazdzewski1990/d4972834f921ad60c6e8 to your computer and use it in GitHub Desktop.
class SpecialAgent extends Actor {
def receive = Receive {
case DoTheMath(taskDef) =>
context.parent ! getResult(taskDef)
context.stop()
}
private def getResult(taskDef: TaskDef): DidTheMath = {
DidTheMath(1)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment