File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Tests/AWSLambdaRuntimeTests Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -299,7 +299,7 @@ struct LambdaRuntimeClientTests {
299299 // simulate traffic until the server reports it has closed the connection
300300 // or a timeout, whichever comes first
301301 // result is ignored here, either there is a connection error or a timeout
302- let _ = try await timeout ( deadline: . seconds( 1 ) ) {
302+ let _ = try await withTimeout ( deadline: . seconds( 1 ) ) {
303303 while true {
304304 let ( _, writer) = try await runtimeClient. nextInvocation ( )
305305 try await writer. writeAndFinish ( ByteBuffer ( string: " hello " ) )
Original file line number Diff line number Diff line change 1313//===----------------------------------------------------------------------===//
1414
1515// as suggested by https://github.com/vapor/postgres-nio/issues/489#issuecomment-2186509773
16- func timeout < Success: Sendable > (
16+ func withTimeout < Success: Sendable > (
1717 deadline: Duration ,
1818 _ closure: @escaping @Sendable ( ) async throws -> Success
1919) async throws -> Success {
You can’t perform that action at this time.
0 commit comments