Hello. I'm trying to build a little game which uses a ranking system. The problem is: I want to wait to receive data from CloudDB before updating the ranking and send to CloudDB again, but it seems that I cannot do this. My approach is to use a "while loop". If I received data or 10 seconds is elapsed then I could do something else. But the loop freezes the app.
Anyone knows a way to wait the received data before proceeding? Thanks!