Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Sources/AWSLambdaRuntime/Lambda+Codable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ extension Lambda {
/// - closure: `CodableClosure` based Lambda.
///
/// - note: This is a blocking operation that will run forever, as its lifecycle is managed by the AWS Lambda Runtime Engine.
public static func run<In: Decodable, Out: Encodable>(_ closure: @escaping CodableClosure<In, Out>) {
public static func run<In: Decodable, Out: Encodable>(_ closure: @escaping CodableClosure<In, Out>) -> Never {
self.run(CodableClosureWrapper(closure))
}

Expand All @@ -42,7 +42,7 @@ extension Lambda {
/// - closure: `CodableVoidClosure` based Lambda.
///
/// - note: This is a blocking operation that will run forever, as its lifecycle is managed by the AWS Lambda Runtime Engine.
public static func run<In: Decodable>(_ closure: @escaping CodableVoidClosure<In>) {
public static func run<In: Decodable>(_ closure: @escaping CodableVoidClosure<In>) -> Never {
self.run(CodableVoidClosureWrapper(closure))
}
}
Expand Down