Avatar
Avatar
norio_nomura
@swift-5.5.3 -Xfrontend -parse-as-library @swift-5.6.3 -Xfrontend -parse-as-library @swift-main -Xfrontend -parse-as-library import Foundation @main struct Entrypoint { static func main() async throws { print("in main():", Thread.current, Thread.isMainThread) await MainActor.run { print("in MainActor.run:", Thread.current, Thread.isMainThread) } } } (edited)
swiftNightly BOT 3/4/2022 4:02 AM
in main(): <Thread: 0x000000000bb0d200> true in MainActor.run: <Thread: 0x00007f3f14000c40> false