Skip to content

Instantly share code, notes, and snippets.

@ayanonagon
Last active November 16, 2015 05:36
func listUsers(completion: Result<[User]> -> Void) {
// Get the list of users
// If success, call completion(Result.Success(users))
// If error, call completion(Result.Error(error))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment