stop waiting for server response

I have page with grid. I am loading data through service to grid. Loading and computing all data takes about 20-40 seconds. When I press button to get data, page start loading (classical in vaadin top loading indicator start loading).

My question is, how can I stop loading/waiting for data?

I can’t stop searching process on that server I am getting data from, it dont have this functionality, I can only request for data, and wait for them.

Should I stop some thread? should i use something like this.getUI… and somewhere here stop it?

I am using vaadin 7.7.4

Thank you :slight_smile: