Skip to content

Commit

Permalink
syntax update
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeWei committed Nov 29, 2024
1 parent f6bb9ee commit 278fdc6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 278fdc6

Please sign in to comment.