andriydruk / swift-weather-app

Cross-platform Swift application for iOS/Mac/Android/Windows
MIT License
49 stars 10 forks source link

Load Swift in a separate thread #23

Open OlofT opened 3 years ago

OlofT commented 3 years ago

In order for DispatchQueue.main not to deadlock, Swift needs to be initiated on a bg-thread. This is needed when calling e.g. DispatchQueue.main.async, etc.

At least this is my current working theory! :)