Skip to content

[core] - move Timeout code from example to core #553

@sebsto

Description

@sebsto

The timeout.swift code from the Lifecycle example is duplicated in the the LambdaRuntimeClientTest (after merging #545)
There is also another code that implements a timeout, although less elegantly, in LambdaRuntimeTests

I propose

1/ to move the Timeout.swift file to the AWSLambdaRuntime target and reuse its mechanism in both tests and the lifecycle example
2/ to rename the function from timeout() to withTimeout() to be consistent with similar functions (withTaskCancellationHandler, withTaskgroup, withServer etc)

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions