What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor:
What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor:
What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor:
What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor:
What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor:
What’s the inverse of `MainActor.assertIsolated`?
In Swift 6, Thread.isMainThread
is illegal in an async
context. To prove you’re “on the main thread”, you now assert you’re on the main actor: