Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobsapps/2a8aa0723834e39a81b31b02bacb71bc to your computer and use it in GitHub Desktop.
Save jacobsapps/2a8aa0723834e39a81b31b02bacb71bc to your computer and use it in GitHub Desktop.
final class ContactsService {
let userAPI = UserAPI()
private(set) var contacts = [Contact]()
func fetchContacts() async throws {
contacts = try await userAPI.fetchAllUsersInContacts()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment