Legacy/Using AsyncTasks/Returning Data

From UE4: Community Wiki
Jump to: navigation, search

Input a Delegate function as a parameter for the FAsyncTask, and execute it from within the Task. Delegates are thread-safe, but editing values, spawning Actors or Objects, or making almost any write of any kind is generally going to result in crashes or, at the very least, inconsistent behavior.

UE4 Documentation on Delegates