add a deprecation warning on package static func runLoop to make API Breakage check happy

This commit is contained in:
Sebastien Stormacq
2026-03-01 13:17:45 +01:00
parent 6f3481d975
commit 7dd9665eaa
+22
View File
@@ -53,6 +53,28 @@ public enum Lambda {
)
}
@available(
*,
deprecated,
message:
"This method will be removed in a future major version update. Use runLoop(runtimeClient:handler:loggingConfiguration:logger:isSingleConcurrencyMode:) instead."
)
@inlinable
package static func runLoop<RuntimeClient: LambdaRuntimeClientProtocol, Handler>(
runtimeClient: RuntimeClient,
handler: Handler,
loggingConfiguration: LoggingConfiguration,
logger: Logger
) async throws where Handler: StreamingLambdaHandler {
try await self.runLoop(
runtimeClient: runtimeClient,
handler: handler,
loggingConfiguration: LoggingConfiguration(logger: logger),
logger: logger,
isSingleConcurrencyMode: true
)
}
@inlinable
package static func runLoop<RuntimeClient: LambdaRuntimeClientProtocol, Handler>(
runtimeClient: RuntimeClient,