Use cocoa bindings and threads
问题 I have a few labels bound to a few variables that are modified in other threads via GCD. Now I've read that cocoa bindings are not thread safe but my app is running fine (the UI updates when the values of the variables are updated in a background thread) Would it be the correct way to do the calculations in the background thread and if I need to change the variable value make this via DispatchQueue.main.sync() { self.variable = newValue } ? If cocoa bindings are not thread safe, why I never