Skip to content

Instantly share code, notes, and snippets.

Created September 12, 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 anonymous/0891342ddea4c9052460d7b85c0d5fa4 to your computer and use it in GitHub Desktop.
Save anonymous/0891342ddea4c9052460d7b85c0d5fa4 to your computer and use it in GitHub Desktop.
ProperHandler
executeThrowable(throwConnectionError)
.map { $0 }
.mapError {
switch $0 {
case let ConnectionFailure.Error(value): print(value)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment