Skip to content

Instantly share code, notes, and snippets.

@cdeerinck
Created June 25, 2019 18:48
Show Gist options
  • Select an option

  • Save cdeerinck/4fa75122794c7d64fb64802248fdeaa4 to your computer and use it in GitHub Desktop.

Select an option

Save cdeerinck/4fa75122794c7d64fb64802248fdeaa4 to your computer and use it in GitHub Desktop.
To force a call to run on the main thread
DispatchQueue.main.async { self.procedureCallHere() } //Forces the call to run on the main thread
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment