|
Hi, I'm using aws cpp sdk to do some async call, specifically sqs->receiveMessagesAsync. However, I can't find a way to interrupt the call in the middle. I looked up for documentation that quote "However, the client object must continue to exist until the asynchronous operation finishes" insdk-for-cpp. I want something that looks like the function checkInterrupted in java sdk. So, is such interruption just not supported for cpp sdk? |
Answered by
jmklix
Jun 17, 2024
Replies: 1 comment
|
Correct, there are no interrupts for this in the C++ sdk. Interrupts in C++ are generally bad and cause undefined behavior. You can try to abort the call in in the middle by using "ContinueRequestHandler". Here is an example that being used in one of our tests. |
0 replies
Answer selected by
jmklix
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Correct, there are no interrupts for this in the C++ sdk. Interrupts in C++ are generally bad and cause undefined behavior.
You can try to abort the call in in the middle by using "ContinueRequestHandler". Here is an example that being used in one of our tests.