In Swift, if one dispatches a block of work to the main thread using:
DispatchQueue.main.async {
// work
// myCallback()
}
Placing print(Thread.current) inside of myCallback indicates that it’s running on the main thread. How do get off the main thread at this point? Or, if I'm looking at this wrong, how can I know when some work I've sent to the main thread is complete?