Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling Async.wrap stops function processing #4

Open
boxxa opened this issue Feb 13, 2015 · 1 comment
Open

Calling Async.wrap stops function processing #4

boxxa opened this issue Feb 13, 2015 · 1 comment

Comments

@boxxa
Copy link

boxxa commented Feb 13, 2015

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
Copy link

hems commented May 16, 2016

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants