Last active
December 29, 2015 16:19
-
-
Save jartur/7696505 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyActor(ref: ActorRef) extends Actor { | |
def receive: Receive = { | |
case Bifurcate => | |
context.actorOf(Props[MyActor](new MyActor(sender))) | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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