Created
July 16, 2021 14:27
-
-
Save aataraxiaa/3616f15a521eb8a0eacd081657b18f7c 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 fetchDataPair(from urls: (URL, URL)) async throws -> (ModelWrapper, ModelWrapper) { | |
async let resultOne = fetchData(from: urls.0) | |
async let resultTwo = fetchData(from: urls.1) | |
return try await (resultOne, resultTwo) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment