Skip to content

Instantly share code, notes, and snippets.

@kmikulski
Created December 5, 2018 21:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmikulski/7718840b660770edce5e97fbbc45b876 to your computer and use it in GitHub Desktop.
Save kmikulski/7718840b660770edce5e97fbbc45b876 to your computer and use it in GitHub Desktop.
the description for this gist
class UserRegistryActor extends Actor with ActorLogging {
import UserRegistryActor._
var users = Seq(
User("Grzegorz", 31, "Poland"),
User("Thomas", 28, "United Kingdom"))
def receive: Receive = {
case GetUsers => sender() ! Users(users)
// we won't need the remaining messages today
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment