有些注定了被遗忘的话,也就有的注定了属于沉静的自私.

Swift GCD/标签

来自森亮号航海见识 {SLboat Insight;}
跳转至: 导航搜索

经验

  • 标签让它们在同一个地方,大概
DispatchQueue(label: "realm").async{
    let ret = self.mfiles.importAll(withForce: force){
        self.progress = $0
    }
    SimpleGCD.async(.main, closure: {
        self.enableButton = true
        if case let .faild(reason) = ret {
            SLAlert.justAlert(reason)
        }else{
            self.loadStatus()
            SLAlert.justAlert("成功导入了\(self.mfiles.count)章文件!请查看数据库状态!")
        }
    })