Created
July 13, 2015 16:48
-
-
Save MansurAshraf/73aa0a511d5bc24bc325 to your computer and use it in GitHub Desktop.
future failure
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
def checkPath(p: String) : Boolean | |
val futureA = Future{ | |
if(!checkPath(...)) throw new IllegalStateException("path doesnt exisit") | |
} | |
val futureB = Future(..) | |
futureA.flatMap(futureB) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment