Skip to content

Instantly share code, notes, and snippets.

@ChristopherDavenport
Created July 28, 2016 13:03
Show Gist options
  • Save ChristopherDavenport/cf5580cb14c062af6dc98cf9cd686c2b to your computer and use it in GitHub Desktop.
Save ChristopherDavenport/cf5580cb14c062af6dc98cf9cd686c2b to your computer and use it in GitHub Desktop.
Saved For Posterity
val futurePidmXor: Future[Xor[MissingPersonContact, BigDecimal]] = convertedContact
.bimap(Future.successful, x => pidmResponder(x.BannerID))
.bisequence
.map(_.flatMap(Xor.fromOption(_, missingPersonContact)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment