From 7dd9665eaacda0844b52fd58a648ea535310fc27 Mon Sep 17 00:00:00 2001 From: Sebastien Stormacq Date: Sun, 1 Mar 2026 11:46:22 +0100 Subject: [PATCH] add a deprecation warning on `package static func runLoop` to make API Breakage check happy --- Sources/AWSLambdaRuntime/Lambda.swift | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/Sources/AWSLambdaRuntime/Lambda.swift b/Sources/AWSLambdaRuntime/Lambda.swift index 69e75ae2..0745b9bd 100644 --- a/Sources/AWSLambdaRuntime/Lambda.swift +++ b/Sources/AWSLambdaRuntime/Lambda.swift @@ -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: 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: RuntimeClient,