Skip to content

Instantly share code, notes, and snippets.

@codedeman
Created July 27, 2019 08:59
Show Gist options
  • Save codedeman/3bab53818c4f8d40b3bb4eb3bc827415 to your computer and use it in GitHub Desktop.
Save codedeman/3bab53818c4f8d40b3bb4eb3bc827415 to your computer and use it in GitHub Desktop.
closure
func run(completion:@escaping()->Void) {
DispatchQueue.main.async {
completion()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment