Replies: 1 comment
-
If you need a cancellation token to pass around, you'll need to implement a CancellationSource in the handler method which will be based on the |
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
-
I've noticed I implemented a lot of async code (services, repositories, etc.) with cancellation token support, but I'm actually not sure if Lambda supports this. Looking for an answer to help me decide if I should remove
CancellationToken
params from async methods.Does
this.HttpContext.RequestAborted
work at controller level? For other functions, I've seen tricks like creating a token source fromlambdaContext.RemainingTime
.Beta Was this translation helpful? Give feedback.
All reactions