Created
November 21, 2010 17:15
-
-
Save maiha/708917 to your computer and use it in GitHub Desktop.
Remove Bangs in Actor
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 Writer extends Actor { | |
| case class Set(key:String, value:String) | |
| def act { | |
| react { | |
| case s:Set => ... | |
| } | |
| aWriter ! Writer.Set("foo", "1") |
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 Writer extends Actor { | |
| case class Set(key:String, value:String) | |
| def act { | |
| react { | |
| case s:Set => ... | |
| } | |
| def set(key:String, value:String) = this ! Set(key,value) | |
| } | |
| aWriter.set("foo", "1") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment