We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For instance the futures at
cyan/app/controllers/admin/prod/Products.scala
Lines 42 to 45 in e328ea7
(http://stackoverflow.com/a/19046133)
The text was updated successfully, but these errors were encountered:
One solution would be changing
for { x <- fut1() y <- fut2() z <- fut3() } yield (x, y, z)
to
( fut1() zip fut2() zip fut3() ) map { case (x, y, z) => (x, y, z) }
Sorry, something went wrong.
Also possible to define utility functions, i.e.
def par_tuple[E1, E2](e1: =>E1, e2: =>E2): Future[(E1, E2)] = { val f = future { e1 } val g = future { e2 } val h: Future[(E1, E2)] = for { x <- f y <- g } yield (x, y) h }
(https://stackoverflow.com/questions/12923429/easy-parallel-evaluation-of-tuples-in-scala)
No branches or pull requests
For instance the futures at
cyan/app/controllers/admin/prod/Products.scala
Lines 42 to 45 in e328ea7
(http://stackoverflow.com/a/19046133)
The text was updated successfully, but these errors were encountered: