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)
swift55 BOT 3/4/2022 4:02 AM
in main(): <Thread: 0x0000000009dd57c0> true in MainActor.run: <Thread: 0x0000000009dd57c0> true