Avatar
@swift-6.1-dev -swift-version 6 final class Buffer { var a: Int = 0 } actor A { let c = C() func foo() async throws { let buffer = try await c.cool() print(buffer.a) } } final class C { var a: Int = 0 var b = Buffer() func cool() async throws -> Buffer { try await Task.sleep(for: .seconds(1)) return b } }