Sometimes, I need some code to skip a run loop pass. For example, I'm closing a sheet that animates out and then run a heavy synchronous operation. To prevent the synchronous operation from making the animation stutter, I use
DispatchQueue.main.async to defer the code to the next run loop. Example.
What would be the way to handle this now with the new concurrency features?
It's unclear to me whether
await Task.yield() would do the same thing.