Skip to content

Instantly share code, notes, and snippets.

@2m
Created February 18, 2015 15:12
Show Gist options
  • Save 2m/5cce1073f96535b1368f to your computer and use it in GitHub Desktop.
Save 2m/5cce1073f96535b1368f to your computer and use it in GitHub Desktop.
class ActorBase extends Actor {
def receive = {
case _ =>
}
}
class AnotherActor extends ActorBase {
val myReceive: Receive = {
case "msg" =>
}
def receive = myReceive.orElse(super.receive)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment