Ios swift – Running a function in a background thread in Swift IOS
I am a beginner to swift and ios development and need some help with structured concurrency. I need a long running function to execute on a background thread, and be cancelled if it is called again before completing. Unfortunately, my…