File tree 1 file changed +4
-3
lines changed
Sources/AWSLambdaRuntimeCore
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 {
49
49
}
50
50
}
51
51
52
+ private typealias ConnectionContinuation = CheckedContinuation < NIOLoopBound < LambdaChannelHandler < LambdaRuntimeClient > > , any Error >
53
+
52
54
private enum ConnectionState {
53
55
case disconnected
54
- case connecting( [ CheckedContinuation < NIOLoopBound < LambdaChannelHandler < LambdaRuntimeClient > > , any Error > ] )
56
+ case connecting( [ ConnectionContinuation ] )
55
57
case connected( Channel , LambdaChannelHandler < LambdaRuntimeClient > )
56
58
}
57
59
@@ -283,8 +285,7 @@ final actor LambdaRuntimeClient: LambdaRuntimeClientProtocol {
283
285
case . connecting( var array) :
284
286
// Since we do get sequential invocations this case normally should never be hit.
285
287
// 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
288
289
array. append ( continuation)
289
290
self . connectionState = . connecting( array)
290
291
}
You can’t perform that action at this time.
0 commit comments