Skip to content

Instantly share code, notes, and snippets.

@jartur
Last active December 29, 2015 16:19
Show Gist options
  • Save jartur/7696505 to your computer and use it in GitHub Desktop.
Save jartur/7696505 to your computer and use it in GitHub Desktop.
class MyActor(ref: ActorRef) extends Actor {
def receive: Receive = {
case Bifurcate =>
context.actorOf(Props[MyActor](new MyActor(sender)))
}
}
class MyActor(ref: ActorRef) extends Actor {
def receive: Receive = {
case Bifurcate =>
context.actorOf(Props(classOf[MyActor], sender))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment