Skip to content

Instantly share code, notes, and snippets.

@noppefoxwolf
Created June 15, 2021 04:03
Show Gist options
  • Save noppefoxwolf/77f49285ceb8e2f685c9afea532e5bba to your computer and use it in GitHub Desktop.
Save noppefoxwolf/77f49285ceb8e2f685c9afea532e5bba to your computer and use it in GitHub Desktop.
class ViewController: UIViewController {
static let dispatchQueue = DispatchQueue(label: "test")
override func viewDidLoad() {
super.viewDidLoad()
ViewController.dispatchQueue.async {
Thread.current.name = "test thread"
print("done")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment