From 8819d11830507d27bac2b265befdc5f80618b432 Mon Sep 17 00:00:00 2001 From: Thomas Krajacic Date: Fri, 29 Mar 2024 16:51:03 +0100 Subject: [PATCH] Make return type of initializer @Sendable --- .../JSONMessageRegistry/JSONMessageName.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/StructuredWebSocketClient/JSONMessageRegistry/JSONMessageName.swift b/Sources/StructuredWebSocketClient/JSONMessageRegistry/JSONMessageName.swift index eb0a7bc..7f489be 100644 --- a/Sources/StructuredWebSocketClient/JSONMessageRegistry/JSONMessageName.swift +++ b/Sources/StructuredWebSocketClient/JSONMessageRegistry/JSONMessageName.swift @@ -30,7 +30,7 @@ public struct JSONMessageName: Sendable, Codable, Equatable, Hashable { public static func initializer( for value: String, ofType: M.Type - ) -> (@escaping @Sendable (M) async -> Void) -> Self { + ) -> @Sendable (@escaping @Sendable (M) async -> Void) -> Self { { handler in .init(value, associatedType: M.self, typeHandler: handler) } }