Created
July 6, 2018 02:49
-
-
Save alexpersian/5fa30e12f771c0eff32fac5279c0b49e to your computer and use it in GitHub Desktop.
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
func requestFirstData() { | |
firstly { | |
firstPromise() | |
}.done { data in | |
self.process(content: data) | |
}.catch { error in | |
print("Error: ", error.localizedDescription) | |
} | |
} | |
func requestSecondData() { | |
firstly { | |
secondPromise() | |
}.done { data in | |
self.process(content: data) | |
}.catch { error in | |
print("Error: ", error.localizedDescription) | |
} | |
} | |
func requestThirdData() { | |
firstly { | |
thirdPromise() | |
}.done { data in | |
self.process(content: data) | |
}.catch { error in | |
print("Error: ", error.localizedDescription) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment