Ios swift – Running Time-Consuming Tasks on @MainActor: Should I Be Concerned About UI Responsiveness?
I always thought that using Task would automatically run time-consuming tasks on a background thread, keeping the UI responsive. However, in the following code, I noticed that my fetchNotes function (which is time-consuming) still runs on the main UI thread…