Skip to content

Instantly share code, notes, and snippets.

@eishay
Created May 2, 2016 23:04
Show Gist options
  • Save eishay/7b1b2169fb5cd9601f27a0011de3d4fe to your computer and use it in GitHub Desktop.
Save eishay/7b1b2169fb5cd9601f27a0011de3d4fe to your computer and use it in GitHub Desktop.
class MyActor @Inject() (db: Database) extends Actor {
def receive() = {
case Update(value) => sender ! db.update(value)
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment