Skip to content

Commit 2fd3a39

Browse files
committed
Resolve SendableMetatype issues
1 parent 0ce87cb commit 2fd3a39

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-
internal final class HTTPBin<RequestHandler: ChannelInboundHandler>: Sendable
362+
#if compiler(>=6.2)
363+
typealias AHCTestSendableMetatype = SendableMetatype
364+
#else
365+
typealias AHCTestSendableMetatype = Any
366+
#endif
367+
368+
internal final class HTTPBin<RequestHandler: ChannelInboundHandler & AHCTestSendableMetatype>: Sendable
363369
where
364370
RequestHandler.InboundIn == HTTPServerRequestPart,
365371
RequestHandler.OutboundOut == HTTPServerResponsePart

0 commit comments

Comments
 (0)