Avatar
@swift-5.9.2 -Xfrontend -parse-as-library import Foundation @globalActor actor HogeActor { static var shared = HogeActor() } @main struct Main { @HogeActor static func isolatedFunc() async { print(Thread.isMainThread) } static func main() async { print(Thread.isMainThread) await isolatedFunc() print(Thread.isMainThread) } }