Daily iOS
Concurrency

Serial queue self-sync

You run this GCD code inside viewDidLoad of a UIKit view controller (main thread). What happens?

DispatchQueue.main.sync {
    print("inside")
}
print("after")

Pick one

Submit