Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aataraxiaa/3616f15a521eb8a0eacd081657b18f7c to your computer and use it in GitHub Desktop.
Save aataraxiaa/3616f15a521eb8a0eacd081657b18f7c to your computer and use it in GitHub Desktop.
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