Advertisement
Guest User

Untitled

a guest
Mar 11th, 2015
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Scala 0.21 KB | None | 0 0
  1. val combinedFuture = for {
  2.       x <- doSomethingWhichReturnsFuture
  3.     // how to put some logic here which says if somecondition(x) then fail the future ?
  4.       y <- doSomethingElseWhichReturnsFuture
  5. } yield y
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement