Created
December 20, 2017 13:45
-
-
Save diogoaurelio/376e40104ae660447aaa3201f10810d6 to your computer and use it in GitHub Desktop.
summaryScalaActorTrait
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
trait Actor { | |
// to make type Receive known in subclasses without import | |
type Receive = Actor.Receive | |
// [...] | |
//#receive | |
def receive: Actor.Receive | |
// [...] | |
} | |
object Actor { | |
type Receive = PartialFunction[Any, Unit] | |
// [...] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment