SHOW:
|
|
- or go back to the newest paste.
1 | import scala.concurrent.Future | |
2 | import scala.concurrent.ExecutionContext.Implicits.global | |
3 | ||
4 | val fiveFuture = Future(5) | |
5 | ||
6 | for { | |
7 | five <- fiveFuture | |
8 | - | } yield { |
8 | + | tenFuture = Future(10) |
9 | - | val tenFuture = Future(10) |
9 | + | ten <- tenFuture |
10 | - | for { |
10 | + | } yield ten |