Skip to content

Commit 8819d11

Browse files
committed
Make return type of initializer @sendable
1 parent 672b7c2 commit 8819d11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/StructuredWebSocketClient/JSONMessageRegistry/JSONMessageName.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public struct JSONMessageName: Sendable, Codable, Equatable, Hashable {
3030
public static func initializer<M: Decodable & Sendable>(
3131
for value: String,
3232
ofType: M.Type
33-
) -> (@escaping @Sendable (M) async -> Void) -> Self {
33+
) -> @Sendable (@escaping @Sendable (M) async -> Void) -> Self {
3434
{ handler in .init(value, associatedType: M.self, typeHandler: handler) }
3535
}
3636

0 commit comments

Comments
 (0)