File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Sources/AWSLambdaRuntimeCore Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -49,9 +49,11 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
4949 }
5050 }
5151
52+ private typealias ConnectionContinuation = CheckedContinuation < NIOLoopBound < LambdaChannelHandler < LambdaRuntimeClient > > , any Error >
53+
5254 private enum ConnectionState {
5355 case disconnected
54- case connecting( [ CheckedContinuation < NIOLoopBound < LambdaChannelHandler < LambdaRuntimeClient > > , any Error > ] )
56+ case connecting( [ ConnectionContinuation ] )
5557 case connected( Channel , LambdaChannelHandler < LambdaRuntimeClient > )
5658 }
5759
@@ -283,8 +285,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
283285 case . connecting( var array) :
284286 // Since we do get sequential invocations this case normally should never be hit.
285287 // We'll support it anyway.
286- let loopBound = try await withCheckedThrowingContinuation {
287- ( continuation: CheckedContinuation < NIOLoopBound < LambdaChannelHandler < LambdaRuntimeClient > > , any Error > ) in
288+ let loopBound = try await withCheckedThrowingContinuation { ( continuation: ConnectionContinuation ) in
288289 array. append ( continuation)
289290 self . connectionState = . connecting( array)
290291 }
You can’t perform that action at this time.
0 commit comments