Skip to content

Instantly share code, notes, and snippets.

@ayanonagon
Last active November 16, 2015 05:36
Show Gist options
  • Save ayanonagon/4c3d61d3ecabcc0ceecc to your computer and use it in GitHub Desktop.
Save ayanonagon/4c3d61d3ecabcc0ceecc to your computer and use it in GitHub Desktop.
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