Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfett committed Aug 30, 2024
1 parent c362386 commit c98f144
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/AWSLambdaRuntimeCore/NewLambdaRuntimeClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,8 @@ final actor NewLambdaRuntimeClient: LambdaRuntimeClientProtocol {
self.connectionState = .connecting([])
break
case .connecting(var array):
// Since we do get sequential invocations this case normally should never be hit.
// We'll support it anyway.
return try await withCheckedThrowingContinuation { (continuation: CheckedContinuation<LambdaChannelHandler, any Error>) in
array.append(continuation)
self.connectionState = .connecting(array)
Expand Down

0 comments on commit c98f144

Please sign in to comment.