Post #3082294
2026-06-03 20:04 UTC
Since I just walked over it again, on non-Darwin platforms the MainActor does NOT necessarily run on the main thread. I think it's just a regular global actor there that can run on any thread.
Actually I wonder how to fix this. Could you do an own MyMain actor w/ an executor that uses the GCD main queue? If so, why doesn't Swift do this in the first place?
Replies (0)
No replies.