-
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? |
Beta Was this translation helpful? Give feedback.
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. |
Beta Was this translation helpful? Give feedback.
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.