Replies: 3 comments
-
Hi @jsumners thanks for reaching out. To confirm, are you asking for a |
Beta Was this translation helpful? Give feedback.
0 replies
-
No. The execution environment is within a Lambda function. I just want to be able to get the desired information without requiring developers to pass the Lambda |
Beta Was this translation helpful? Give feedback.
0 replies
-
Why was this converted to a discussion and then locked? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Confirm by changing [ ] to [x] below:
Describe the question
I understand that the context object has a
getRemainingTimeInMillis
method. But in order to use that in a transient dependency, the user of the transient dependency must remember to pass this context object along. My goal is to write an HTTP client library that can be used in non-Lambda code as well as in a Lambda function. When used within a Lambda function, this HTTP client should be able to determine what remaining execution time is available before issuing a request so that it can manage timeouts accordingly. Given that, is there an SDK method this transient HTTP client dependency can use to get this information without having to rely on the context object?Beta Was this translation helpful? Give feedback.
All reactions