Skip to content

Instantly share code, notes, and snippets.

@marmelroy
Created July 19, 2016 20:58
Show Gist options
  • Save marmelroy/b40d5f068bbe82089ab120db39385ab1 to your computer and use it in GitHub Desktop.
Save marmelroy/b40d5f068bbe82089ab120db39385ab1 to your computer and use it in GitHub Desktop.
let workItem = DispatchWorkItem(qos: .userInitiated, flags: .assignCurrentContext) {
// Do stuff
}
queue.async(execute: workItem)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment