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 {
299
299
// simulate traffic until the server reports it has closed the connection
300
300
// or a timeout, whichever comes first
301
301
// 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 ) ) {
303
303
while true {
304
304
let ( _, writer) = try await runtimeClient. nextInvocation ( )
305
305
try await writer. writeAndFinish ( ByteBuffer ( string: " hello " ) )
Original file line number Diff line number Diff line change 13
13
//===----------------------------------------------------------------------===//
14
14
15
15
// as suggested by https://github.com/vapor/postgres-nio/issues/489#issuecomment-2186509773
16
- func timeout < Success: Sendable > (
16
+ func withTimeout < Success: Sendable > (
17
17
deadline: Duration ,
18
18
_ closure: @escaping @Sendable ( ) async throws -> Success
19
19
) async throws -> Success {
You can’t perform that action at this time.
0 commit comments