We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bb2848e commit d514129Copy full SHA for d514129
Sources/LanguageServerProtocol/LanguageServerProtocol.swift
@@ -10,6 +10,15 @@ public enum ProtocolError: Error {
10
case missingReply
11
}
12
13
+public enum ClientEvent: Sendable {
14
+ public typealias RequestResult = Result<Encodable & Sendable, AnyJSONRPCResponseError>
15
+ public typealias RequestHandler = @Sendable (RequestResult) async -> Void
16
+
17
+ case request(id: JSONId, request: ClientRequest)
18
+ case notification(ClientNotification)
19
+ case error(Error)
20
+}
21
22
public enum ServerEvent: Sendable {
23
public typealias RequestResult = Result<Encodable & Sendable, AnyJSONRPCResponseError>
24
public typealias RequestHandler = @Sendable (RequestResult) async -> Void
0 commit comments