diff --git a/Examples/CaseStudies/SwiftUICaseStudies/03-Effects-WebSocket.swift b/Examples/CaseStudies/SwiftUICaseStudies/03-Effects-WebSocket.swift index a647dbecb3c3..3956fe5ea41f 100644 --- a/Examples/CaseStudies/SwiftUICaseStudies/03-Effects-WebSocket.swift +++ b/Examples/CaseStudies/SwiftUICaseStudies/03-Effects-WebSocket.swift @@ -301,10 +301,10 @@ extension WebSocketClient: DependencyKey { let task = Task { while !Task.isCancelled { do { - let socketMessage = try await socket.receive() + let socketMessage = try await Message(socket.receive()) continuation.yield(.success(socketMessage)) } catch { - continuation.yield(with: .failure(error)) + continuation.yield(.failure(error)) } } continuation.finish()