Swift 6 strict concurrency: How to safely use @_silgen_name bindings to private C frameworks with callback-based APIs?
Summary Swift 6 strict concurrency requires careful handling of callback-based C APIs, especially when integrating with private frameworks like MultitouchSupport. The challenge arises from uncontrolled thread execution in callbacks, leading to potential data races and concurrency violations. This postmortem explores the root cause, real-world impact, and solutions for bridging such APIs with Swift’s structured concurrency. … Read more