Last active
May 7, 2018 15:58
-
-
Save andynovak12/5f4ae18eac853887139f1ec4c7aebdcf to your computer and use it in GitHub Desktop.
Using Wrapped Asynchronous Function with ReactiveSwift
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
// Simple Use of Asynchronous ReactiveSwift Function | |
wrappedFunction().startWithResult { result in | |
if let returnedString = result.value { | |
print(returnedString) | |
} else if let returnedError = result.error { | |
print(returnedError) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment