Avatar
@swift-5.7.3 @swift-5.6.3 func nonIsolatedFunc() async { print(Thread.isMainThread) try? await Task.sleep(nanoseconds: 1_000_000) print(Thread.isMainThread) } Task { @MainActor in await nonIsolatedFunc() }