Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.