Avatar
Avatar
kntk
@swift-5.6.3 @swift-5.7.3 import Foundation func nonIsolatedFunc() async { print(Thread.isMainThread) try? await Task.sleep(nanoseconds: 1_000_000) print(Thread.isMainThread) } @MainActor func mainIsolatedFunc() async { await nonIsolatedFunc() } Task { await mainIsolatedFunc() }
exit status: 139 with stdout:false falsetimeout: the monitored command dumped core
🤔 1