Re:Maximize Server Throughput with Scala Futures
by empirewindrush on Wednesday September 10, 2014 @02:25PM
(#8298115)
The issue is that this:
looks a lot like this
But the second one will be sequential. This is a common trap for new Scala futures users. You are right (as is the op below) that the first one work the way you expect. It is just easy for new users who don't understand how the de-sugaring resolves for get "caught."
[ Parent
| on HN ]
Re:Maximize Server Throughput with Scala Futures
by eklavya on Wednesday September 10, 2014 @02:28PM
(#8298139)
Yeah but that's my point they are doing it right.They are not falling into the trap ;)
Re:Maximize Server Throughput with Scala Futures
by empirewindrush on Wednesday September 10, 2014 @02:34PM
(#8298180)
You are right. I jumped on it without giving the author the benefit of the doubt. This is one of those things that I personally have been burned by, and I wanted to save other from falling victim to the same mistake.