Skip to content

Instantly share code, notes, and snippets.

@aakhedr
Last active February 16, 2017 07:03
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 aakhedr/2f141e938eb02517e6c553ffc6d76857 to your computer and use it in GitHub Desktop.
Save aakhedr/2f141e938eb02517e6c553ffc6d76857 to your computer and use it in GitHub Desktop.
LobsterOps
func sendDataToRemoteServer(_ data: [[ : ]], hotelName: String) { success, error in
if error != nil {
DispatchQueue.main.async {
// DO NOT REMOVE THE COMPLETED CHECKLIST STEPS FROM THE DEVICE
// Show something to the user to let them know checklist is not sent to remote server
} else {
DispatchQueue.main.async {
// It's now safe to remove the checklist completed steps from the device
// Possibly show user an animation 'Checklist sent'
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment