Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save aataraxiaa/f5d56c9e4e1b09b36bc9bd7f04284134 to your computer and use it in GitHub Desktop.
Save aataraxiaa/f5d56c9e4e1b09b36bc9bd7f04284134 to your computer and use it in GitHub Desktop.
func fetchDataPair(from urls: (URL, URL)) async throws -> (ModelWrapper, ModelWrapper) {
let resultOne = try await fetchData(from: urls.0)
let resultTwo = try await fetchData(from: urls.1)
return (resultOne, resultTwo)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment