Skip to content

Commit efb14fe

Browse files
authored
Resolve SendableMetatype issues (#865)
This resolves warnings around SendableMetatype in the AHC codebase, and gets our 6.2 builds working again.
1 parent 0ce87cb commit efb14fe

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

‎Tests/AsyncHTTPClientTests/HTTPClientTestUtils.swift‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,13 @@ enum TestTLS{
359359
)
360360
}
361361

362-
internalfinalclassHTTPBin<RequestHandler:ChannelInboundHandler>:Sendable
362+
#if compiler(>=6.2)
363+
typealiasAHCTestSendableMetatype=SendableMetatype
364+
#else
365+
typealiasAHCTestSendableMetatype=Any
366+
#endif
367+
368+
internalfinalclassHTTPBin<RequestHandler:ChannelInboundHandler&AHCTestSendableMetatype>:Sendable
363369
where
364370
RequestHandler.InboundIn ==HTTPServerRequestPart,
365371
RequestHandler.OutboundOut ==HTTPServerResponsePart

0 commit comments

Comments
(0)