Skip to content

Instantly share code, notes, and snippets.

@JohnMurray
Created January 27, 2014 20:18
Show Gist options
  • Save JohnMurray/8656408 to your computer and use it in GitHub Desktop.
Save JohnMurray/8656408 to your computer and use it in GitHub Desktop.
Object Util {
def dangerousString(str: String) : Future[String] = {
liveDangerously()
Future.successful(str)
}
// now becomes
def dangerousString(str: String) : Future[String] = {
Future {
liveDangerously()
str
}
}
}
@JohnMurray
Copy link
Author

A fix for the class held on 01/27/2014.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment