Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@laevandus
Last active February 20, 2022 01:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laevandus/4603a6c199429aae026aceed01d7b6d2 to your computer and use it in GitHub Desktop.
Save laevandus/4603a6c199429aae026aceed01d7b6d2 to your computer and use it in GitHub Desktop.
func refreshDocuments() {
Task(priority: .userInitiated) {
do {
self.documents = try await fetcher.fetchAllDocuments()
}
catch {
// Handle error
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment