How to properly use Futures with the Scala for comprehension

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.

Photo D8
 
Tags