How to prevent actor from beeing Destroyed

Hey Guys,

Currently i am fooling around with the Async library and i am trying to access Actors through that.
That is actually working so far .
But if the gamethread deletes that said actor i get weird errors.

So what i did is for those specific actors i have a list of all objects that are doing async work on my actor.
And i want to prevent the deletion of the actor as long as there is async work going on .

I tried the function IsReadyForFinishDestroy … but that didnt seem to work correctly .

I hope someone can help me with this issue

You can try to add it to root,
or maybe even a bit better you can call a “FGCScopeGuard” inside your async tasks (just ensure you are calling it before it gets GCed).