Skip to content

Instantly share code, notes, and snippets.

@jacobmoncur
Created January 12, 2016 20:16
Show Gist options
  • Save jacobmoncur/3d7103e54651f0a3f914 to your computer and use it in GitHub Desktop.
Save jacobmoncur/3d7103e54651f0a3f914 to your computer and use it in GitHub Desktop.
val snapshot = try {
cache[key] ?: return null
} catch (e: IOException) {
// Give up because the cache cannot be read.
return null
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment