Skip to content

Commit

Permalink
Require NegotiationResult to be Sendable
Browse files Browse the repository at this point in the history
In NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult> the
result is used to fulfil promises and perform hops so we need it to be
sendable when accessed from these other concurrency domains.
  • Loading branch information
rnro committed Feb 7, 2025
1 parent 5f09136 commit 143fc69
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,8 @@ import NIOCore
/// specify a type that must be returned from the supplied closure. The result will then be used to succeed the ``NIOTypedApplicationProtocolNegotiationHandler/protocolNegotiationResult``
/// promise. This allows us to construct pipelines that include protocol negotiation handlers and be able to bridge them into `NIOAsyncChannel`
/// based bootstraps.
public final class NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult>: ChannelInboundHandler,
RemovableChannelHandler
{
@preconcurrency
public final class NIOTypedApplicationProtocolNegotiationHandler<NegotiationResult: Sendable>: ChannelInboundHandler, RemovableChannelHandler {
public typealias InboundIn = Any

public typealias InboundOut = Any
Expand Down

0 comments on commit 143fc69

Please sign in to comment.