Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val combinedFuture = for {
- x <- doSomethingWhichReturnsFuture
- // how to put some logic here which says if somecondition(x) then fail the future ?
- y <- doSomethingElseWhichReturnsFuture
- } yield y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement