I'd like to continue to spin but know when the request is available, using C++
Post score: 1
This is not currently possible, so you'll have to do an asynchronous service call, starting it in the subscription callback and finishing it in a callback when the response is received. Here's an example:
In general, it's a bad idea to block in a subscription (or service, or timer) callback since that prevents other callbacks from being handled.
Originally posted by William with karma: 17335 on 2018-06-21
This answer was ACCEPTED on the original site
Post score: 2