Avatar
Avatar
omochimetaru
@swift-main import Foundation MainActor.preconditionIsolated() print(Thread.current.isMainThread) func main() async { let task = Task { @MainActor () in MainActor.preconditionIsolated() print(Thread.current.isMainThread) } await task.value } await main() (edited)
swiftNightly BOT 11/22/2023 3:43 AM
true false