Created
March 4, 2016 09:19
-
-
Save erangaeb/115414d62b116bd85c01 to your computer and use it in GitHub Desktop.
Initialize actor via companion object
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
| // initialise actor via companion object | |
| val msg = "SHARE #lat #lon" | |
| context.actorOf(MessageHandler.props(msg), "MessageHandler") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment