Skip to content

Instantly share code, notes, and snippets.

@zmallen
Created September 3, 2013 19:14
Show Gist options
  • Save zmallen/6428287 to your computer and use it in GitHub Desktop.
Save zmallen/6428287 to your computer and use it in GitHub Desktop.
future
val f: Future[Array[String]] = future {
t.Scrape()
}
f onSuccess {
case arr => {
println("Scrape complete " + arr.length)
}
}
f onFailure {
case t => {
println("Error on scrape: " + t.getMessage)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment