Skip to content

Instantly share code, notes, and snippets.

@andynovak12
Last active May 7, 2018 15:58
Show Gist options
  • Save andynovak12/5f4ae18eac853887139f1ec4c7aebdcf to your computer and use it in GitHub Desktop.
Save andynovak12/5f4ae18eac853887139f1ec4c7aebdcf to your computer and use it in GitHub Desktop.
Using Wrapped Asynchronous Function with ReactiveSwift
// 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