Skip to content

Instantly share code, notes, and snippets.

@ldacosta
Created April 10, 2014 14:08
Show Gist options
  • Save ldacosta/10386234 to your computer and use it in GitHub Desktop.
Save ldacosta/10386234 to your computer and use it in GitHub Desktop.
val operationsFutureMat: List[Future[Try[currentype]]] = operationsFuture.map {
+ _.map(s => Success(s)).recover {
+ case x => Failure(x)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment