Swift
Swift uses purely ARC. How does it fix the problems that arise without a tracing garbage collector?
Fixing Reference Cycles
Fixing Races caused by Multi-Threading
class Box {
var value = 0
}
let box = Box()
DispatchQueue.global().async {
box.value += 1
}
DispatchQueue.global().async {
box.value += 1
}Last updated
Was this helpful?