Created
July 9, 2013 06:03
-
-
Save patriknw/5955043 to your computer and use it in GitHub Desktop.
Remote Watch Spotlight
This file contains 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
case object Register | |
class Master extends Actor { | |
var workers = Set.empty[ActorRef] | |
def receive = { | |
case Register => | |
workers += sender | |
context watch sender | |
case Terminated(ref) => | |
workers -= ref | |
case ... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment