Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val f1: Future[Option[String]] = Future(Some("hello"))
- val f2: Future[Option[String]] = Future(Some("world"))
- (for {
- valFromF1 <- f1
- valFromF2 <- f2
- } yield valFromF1 + " " + valFromF2) map(println(_))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement