I am using
AsyncTask(ENamedThreads::GameThread, param
{
//code
});
to execute code on the gamethread.
I want to wait until this AsyncTask is done before continuing, how should I do that?
I am using
AsyncTask(ENamedThreads::GameThread, param
{
//code
});
to execute code on the gamethread.
I want to wait until this AsyncTask is done before continuing, how should I do that?
Did you find an answer to your question in the meantime? Also trying to figure if there’s any c++ function that is triggered on another function’s completion. In specific the fbxFactory FactoryCreateFile() function
The idea isn’t to wait for an async task to be done per say - pass into your lambda an function pointer to fire when your done in your task, then handle that. You can even specify the thread on which to do this so you can update your UI on the game thread, for example.