I call this function in the startup of my app. I expect it to run and loop. The Async task I would assume would execute and then continue on but once the asyncGameUpdater runs, it stops the processing.
function gameUpdateTask(){
var asyncGameUpdater = Async.wrap(gameUpdater);
asyncGameUpdater();
var i=0;
while (i < config.openInAdvance){
syncGameUpdater();
i++;
}
}
I call this function in the startup of my app. I expect it to run and loop. The Async task I would assume would execute and then continue on but once the asyncGameUpdater runs, it stops the processing.