Avatar
@swift-main import Foundation print(Thread.current.isMainThread) func main() async { let task = Task { @MainActor () in print(Thread.current.isMainThread) } await task.value } await main() (edited)