Using AsyncTasks/Returning Data

From Epic 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