Skip to content

Instantly share code, notes, and snippets.

@agiletalk
Created February 7, 2022 01:02
Show Gist options
  • Save agiletalk/c86b720653d32aa40bc709d4af69b543 to your computer and use it in GitHub Desktop.
Save agiletalk/c86b720653d32aa40bc709d4af69b543 to your computer and use it in GitHub Desktop.
wrong await
func loadFeedEntries() async throws -> Feed.Entries {
let feed = try await loadFeed()
let banners = try await loadBanner()
let articles = try await loadArticles()
let status = try await loadRegularPayment()
let watching = try await loadWantedPlusWatching()
return Feed.Entries(
...
banners: banners,
articles: articles,
status: status,
watching: watching,
...
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment