Avatar
Avatar
omochimetaru
@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)
swiftNightly BOT 11/22/2023 3:41 AM
true false (edited)