Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/sharepoint/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Swift 预期返回的函数中缺少返回';CacheCallbackCoordinator.State';_Swift_Kingfisher - Fatal编程技术网

Swift 预期返回的函数中缺少返回';CacheCallbackCoordinator.State';

Swift 预期返回的函数中缺少返回';CacheCallbackCoordinator.State';,swift,kingfisher,Swift,Kingfisher,更新了我的播客文件,并开始在KingFisherManager中获取此错误。(请帮助) 您的XCode版本/Swift版本是什么?您设置的翠鸟版本是什么?我猜呢?使用新的隐式返回,而您没有允许它的Swift版本。 set { stateQueue.sync { threadSafeState = newValue } } get { stateQueue.sync { threadSafeState } } } init(shouldWaitF

更新了我的播客文件,并开始在KingFisherManager中获取此错误。(请帮助)


您的XCode版本/Swift版本是什么?您设置的翠鸟版本是什么?我猜呢?使用新的隐式返回,而您没有允许它的Swift版本。
        set { stateQueue.sync { threadSafeState = newValue } }
        get { stateQueue.sync { threadSafeState } }
    }

    init(shouldWaitForCache: Bool, shouldCacheOriginal: Bool) {
        self.shouldWaitForCache = shouldWaitForCache
        self.shouldCacheOriginal = shouldCacheOriginal
        let stateQueueName = "com.onevcat.Kingfisher.CacheCallbackCoordinator.stateQueue.\(UUID().uuidString)"
        self.stateQueue = DispatchQueue(label: stateQueueName)
    }

    func apply(_ action: Action, trigger: () -> Void) {
        switch (state, action) {
        case (.done, _):
            break```