Skip to content

Commit

Permalink
Make return type of initializer @sendable
Browse files Browse the repository at this point in the history
  • Loading branch information
tkrajacic committed Mar 29, 2024
1 parent 672b7c2 commit 8819d11
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct JSONMessageName: Sendable, Codable, Equatable, Hashable {
public static func initializer<M: Decodable & Sendable>(
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) }
}

Expand Down

0 comments on commit 8819d11

Please # to comment.