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?
let myConcurrentQueue = DispatchQueue(label: "concurrentQ", attributes: .
concurrent)
dispatch_barrier_async(myConcurrentQueue) { ... }
ddunbar
(Daniel Dunbar)
2
The new spelling is:
queue.async(flags: .barrier) { ... }
- Daniel
···
On Jun 28, 2016, at 12:24 PM, Eric Miller via swift-users <swift-users@swift.org> wrote:
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?
let myConcurrentQueue = DispatchQueue(label: "concurrentQ", attributes: .concurrent)
dispatch_barrier_async(myConcurrentQueue) { ... }
_______________________________________________
swift-users mailing list
swift-users@swift.org
https://lists.swift.org/mailman/listinfo/swift-users