In my application, I needed to consume an "expensive" (+3 seconds to respond) web service. The results had to be as fast as possible without halting the system/process. What I needed, was to process the web service in the background (thread), then display the results in the application. I used Twitter and GitHub as an example.
Then display the results with the following render.scala.html page:
At the beginning of the application, I got the following error:The solution is to import the following: