Reading List
How the Swift Compiler Knows That DispatchQueue.main Implies @MainActor from Michael Tsai RSS feed.
How the Swift Compiler Knows That DispatchQueue.main Implies @MainActor
Ole Begemann (Mastodon): A bit of experimentation reveals that it is in fact a relatively coarse source-code-based check that singles out invocations on DispatchQueue.main, in exactly that spelling. […] Fun fact: since this is a purely syntax-based check, if you define your own type named DispatchQueue, give it a static main property and a function […]