GCD
-
Fix: App Crashes Starting Background Thread in iOS
App crashes when using performSelectorInBackground for SQLite fetch? Learn why the autorelease pool is required and how to fix it with GCD.
-
How to Replace dispatch_after with asyncAfter and Task.sleep
Replace the old dispatch_after call with DispatchQueue.main.asyncAfter or Task.sleep. Covers delay syntax, canceling delayed work, and SwiftUI’s .task modifier.
-

How to Run Tasks on a Background Thread in Swift Safely
Learn how to run heavy operations on a background thread in Swift using DispatchQueue and modern Swift concurrency without freezing your user…