From: Rui Huang on
I was using an Extrinsic API to request data from outside and store them into a global variable. One thing bothering me is sometimes nothing happens or the data comming in slowly, and then some fractions of a second later a totally different method gets fired with the data you requested as an argument. say

exAPI.reqdata();
do(global variable 1);

what should i do to make sure all the data have been stored into the global variable?