Swift Concurrency question (Swift 5, no approachable concurrency, nonisolated default actor isolation): when you add a simple Task block in a func in a view controller, I thought it always executes on the main thread if the callee invokes that func while on main. If you want to run code on a background thread, you implement an async func and call it in the Task, but the next line in the Task would still be back on main. Is that wrong, any line in the Task body can run on any thread??

0

If you have a fediverse account, you can quote this note from your own instance. Search https://mastodon.world/users/jordanhipwell/statuses/116030356425714154 on your instance and quote it. (Note that quoting is not supported in Mastodon.)