[swift-users] Swift 3 equivalent of dispatch_barrier_async

Eric Miller hi at simple.gy
Tue Jun 28 14:24:20 CDT 2016


I tried searching github's swift-evolution for "dispatch_barrier_async",
but don't see a mention of it.

Can I migrate this directly to swift 3, or do I need a larger refactor
involving serial queues?

```swift

let myConcurrentQueue = DispatchQueue(label: "concurrentQ", attributes: .
concurrent)
dispatch_barrier_async(myConcurrentQueue) { ... }

```
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-users/attachments/20160628/139e74d6/attachment.html>


More information about the swift-users mailing list