Avatar
Avatar
kntk
@swift-5.6.3 @swift-5.7.3 import Foundation func nonIsolatedFunc() async { print("nonIsolated: \(Thread.isMainThread)") } @MainActor func mainIsolatedFunc() async { print("MainActor: \(Thread.isMainThread)") await nonIsolatedFunc() } Task { await mainIsolatedFunc() }
no output