Getting main thread instead of background
DispatchQueue.main.async { DispatchQueue.global().sync { print(Thread.isMainThread) } } Why am I getting main thread in this case? ios swift grand-central-dispatch
DispatchQueue.main.async { DispatchQueue.global().sync { print(Thread.isMainThread) } } Why am I getting main thread in this case? ios swift grand-central-dispatch