I use GWT and I make RPC calls to get some data from the database. I use this data to draw charts with the Google Charts API. The problem is that the GWT RPC call is asynchronous, and my chart always uses data from the last call, not the current one. (I populate the int array in the onSuccess function)). How do I wait a while to make sure RPC completes and writes my array and then draws a diagram since there is no Thread.sleep () function?
source
share