tap event confusion

i have a function that executes on a tap event, this function needs to display an object, then polls a server until it gets the desired response from the server.

This has undesirable results, it will not display the object until the entire function completes, so if it is polling for a few seconds, the object effectively will not show up when tapped.

I am unsure how to fix this. Help please? [import]uid: 29997 topic_id: 8672 reply_id: 308672[/import]

what method do you use to poll the server?
if it not an async call, you have to wait until you get the server response

[import]uid: 6459 topic_id: 8672 reply_id: 31164[/import]