Thank you for your participation in the forum. Is the reply below satisfactory in resolving your query?
If so please can you click the 'Accept' text next to the appropriate reply? This will guide all community members who have a similar question or could you provide the information required for further investigation, please?
Thanks,
AHS
Please be informed that a reply has been verified as correct in answering the question, and has been marked as such.
Thanks,
AHS
Can you please expand on your question - not sure I understand?
The majority of the Consumer examples we provided are fairly simple in nature - usually demonstrating a particular functionality or behaviour of EMA. Therefore, the majority of them have a 60sec sleep in the main() - to stop the application from exiting and thereby allow the example to log in to the server and receive some data back / perform whatever other operation it is trying to demonstrate.
Some examples don't use the sleep() method, rather they set the dispatch model to UserDispatch and then run a loop for 60secs to call dispatch manually (rather than letting the API do it) e.g. example130 UserDisp
You can read more about User Dispatching in the EMA DevGuide which is included with the RT-SDK.