skip to Main Content

Ios swift – What is the proper way of executing a long-running, expensive, synchronous operation asynchronously on a background thread with async/await

Let’s say I have the following function which performs a long-running, expensive, synchronous operation: func doSomethingExpensive() -> Foo { let result = // ... some long-running, expensive, synchronous operation ... let manipulatedResult = manipulateResult(result) // another long-running, expensive, synchronous operation…

VIEW QUESTION
Back To Top
Search