Reorder Futures.future params to take better advantage of default values
This commit is contained in:
parent
3a62cab837
commit
b19e10453e
1 changed files with 1 additions and 1 deletions
|
|
@ -210,7 +210,7 @@ class FutureSpec extends JUnitSuite {
|
|||
}).start
|
||||
}
|
||||
def futures = actors.zipWithIndex map { case (actor: ActorRef, idx: Int) => actor.!!) }
|
||||
assert(futures.foldLeft(Futures.future(0)(0))((fr, fa) => fr flatMap (r => fa map (_ + r))).awaitBlocking.result.get === 45)
|
||||
assert(futures.foldLeft(Futures.future(0))((fr, fa) => fr flatMap (r => fa map (_ + r))).awaitBlocking.result.get === 45)
|
||||
}
|
||||
|
||||
@Test def shouldFoldResultsWithException {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue