By Alvin Alexander. Last updated: October 6, 2014
I wrote about the proper way to use Futures with the Scala for comprehension in the Scala Cookbook, and this short blog post shows a similar example. In short, you need to create your Future
(s) before entering the for
comprehension, otherwise they won’t work as expected.