Created
September 12, 2016 14:59
-
-
Save anonymous/0891342ddea4c9052460d7b85c0d5fa4 to your computer and use it in GitHub Desktop.
ProperHandler
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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