I have an app written in Swift 2. And there is a line like this.
semaphore.wait(timeout: dispatch_time_t(DISPATCH_TIME_FOREVER));
but this line shows as an error in Swift 3. How can I convert this to Swift 3.
Please help me. Thanks
您可以将其转换为semaphore.wait(timeout: .distantFuture)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.