Skip to content

Instantly share code, notes, and snippets.

@lnds
Created March 31, 2016 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lnds/9c155177f7fa2702dd99d761edb83efc to your computer and use it in GitHub Desktop.
Save lnds/9c155177f7fa2702dd99d761edb83efc to your computer and use it in GitHub Desktop.
def parFetch(cities:List[String]) : Unit = {
val reports = (cities.par map (city => apiCall(city))).toList
printReports(reports)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment