Created
July 28, 2016 13:03
-
-
Save ChristopherDavenport/cf5580cb14c062af6dc98cf9cd686c2b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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