Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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
You can’t perform that action at this time.