meteorhacks / meteor-async

Set of async utilities to work with NPM modules inside Meteor
MIT License
63 stars 4 forks source link

Calling Async.wrap stops function processing #4

Open boxxa opened 9 years ago

boxxa commented 9 years ago

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++;

    }
}
hems commented 8 years ago

is your GameUpdated calling the "callback" method once it's finished?