Skip to content

Instantly share code, notes, and snippets.

Created Feb 20, 2022
What would you like to do?
func preloadMessages(for conversations: [Conversation]) async {
await withThrowingTaskGroup(of: Void.self) { taskGroup in
for conversation in conversations {
taskGroup.addTask {
try await self.preloadMessages(for: conversation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment