Thread synchronization made easy
What is SwiftSafe?
SwiftSafe is a thread synchronization made easy.
Performance-sensitive classes need internal state synchronization, so that external accessors don’t break the internal invariants and cause race conditions. Using GCD (Grand Central Dispatch) directly can confuse newcomers, because the API doesn’t necessarily reflect the actual reason why it’s being used. That’s why wrapping it in a straighforward Swifty API can introduce a bit more clarity to your code.