多说无用,直接上码
func Pop()->T?{ var result:Any? Locker.Lock() if Data.count>0 { result = Data.removeAtIndex(0) } Locker.UnLock() return result as? T }
原文链接:https://www.f2er.com/swift/327256.html多说无用,直接上码
func Pop()->T?{ var result:Any? Locker.Lock() if Data.count>0 { result = Data.removeAtIndex(0) } Locker.UnLock() return result as? T }
原文链接:https://www.f2er.com/swift/327256.html