Avatar
Avatar
Yuta Saito
@swift-5.6.3 -Xfrontend -parse-as-library import Foundation @main struct Main { static func nonIsolatedFunc() async { print(Thread.isMainThread) } @MainActor static func mainIsolatedFunc() async { await nonIsolatedFunc() } static func main() async { await Task { await mainIsolatedFunc() }.value } }
false