SwiftConcurrentCollections:Swift并发集合

时间:2021-05-07 06:42:19
【文件属性】:
文件名称:SwiftConcurrentCollections:Swift并发集合
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-07 06:42:19
collection collections threading threads thread-safe SwiftConcurrentCollections 介绍 Swift并发集合(或SCC )是一个库,提供一些默认Swift集合的并发(线程安全)实现。 与Java的java.util.concurrent发现的类似。 安装 迦太基 在您的Xcode项目文件夹中执行以下操作: echo "github \"peterprokop/SwiftConcurrentCollections\" ~> 1.3.0" >> Cartfile (或使用nano ) 运行carthage update 将SwiftConcurrentCollections添加到迦太基 在计划使用它的文件中添加import SwiftConcurrentCollections 用法 import SwiftConcurrentCollections 然后,您可以使用来自不同线程的并发集合,而不必担心崩溃或数据损坏
【文件预览】:
SwiftConcurrentCollections-master
----.gitignore(2KB)
----SwiftConcurrentCollectionsTests()
--------PriorityQueueTests.swift(2KB)
--------ConcurrentArrayTests.swift(2KB)
--------Info.plist(701B)
--------ConcurrentDictionaryTests.swift(3KB)
--------ConcurrentPriorityQueueTests.swift(3KB)
----README.md(2KB)
----SwiftConcurrentCollections()
--------ConcurrentArray.swift(3KB)
--------ConcurrentDictionary.swift(3KB)
--------PriorityQueue.swift(3KB)
--------ConcurrentPriorityQueue.swift(2KB)
--------GCDConcurrentArray.swift(2KB)
--------Info.plist(728B)
--------GCDConcurrentDictionary.swift(2KB)
--------SwiftConcurrentCollections.h(618B)
--------RWLock.swift(657B)
----LICENSE(1KB)
----SwiftConcurrentCollections.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(22KB)
--------xcshareddata()

网友评论