question

Upvotes
Accepted
3 0 0 3

Is there any example of non blocking consumer application in EMA?

elektronelektron-sdkrrtema-apirefinitiv-real-time
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
20.3k 73 10 20

Hi @khushboo.kumari

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.


icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea