1 個回答
- 最新
- 最多得票
- 最多評論
0
Correct, there are no interrupts for this in the C++ sdk. Interrupts in C++ are generally bad and cause some bad undefined behaviors.
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.
已回答 2 年前
相關內容
已提問 1 年前

Thanks for the reply!
However, I tried to use your recommended "ContinueRequestHandler", for the operation sqs->receiveMessagesAsync. The responding speed didn't change at all, and I believe it's still waiting for 20s for the long polling to end. Is there a better solution to this?
You can try setting a more aggressive timeout to decrease the amount of time that you're waiting. Sorry that there isn't a better solution.