Skip to content

Instantly share code, notes, and snippets.

@ryantanner
Created October 25, 2014 23:05
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 ryantanner/69af7b9e77a1d964053b to your computer and use it in GitHub Desktop.
Save ryantanner/69af7b9e77a1d964053b to your computer and use it in GitHub Desktop.
def receive = {
case DoWork =>
val data: Future[Data] = getHundredsOfMegabytesOfData()
data.flatMap(computationallyExpensiveOperations).pipeTo(sender())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment