最佳答案
经过语言版本3的修改后,Swift 中 dispatch_once
的新语法是什么?旧版本如下。
var token: dispatch_once_t = 0
func test() {
dispatch_once(&token) {
}
}
这些 是对《自由派遣》的修改。