mirror of
https://github.com/swift-server/swift-aws-lambda-runtime.git
synced 2026-06-02 07:27:33 +00:00
add a deprecation warning on package static func runLoop to make API Breakage check happy
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user