Question
Water NSW
AU
Last activity: 10 Jul 2017 7:52 EDT
Non-blocking UI and Server Calls
Hi,
The background behind this question is that we arev tryign to achieve non-blocking UI for an application screen.
We were able to achieve it using asynchronous data-pages and activities.
When using asynchronous calls, we expect the activity to run in a background without the need for the invoked activity to wait. That is working fine.
However, we are unable to invoke any other server calls while the asynchrnous activity is running.
For example:
On a button click I am calling an activity. This activity calls an asynchronous activity. The Asynchronous activity has a wait method with a value of 30 seconds for testing purpose.
After the button is clicked, any other components that require a server side call (example: auto complete) is not working for 30 secs.
Is this an expected behaviour? is there a way to achieve both non-blocking UI and server calls?