CallOnGameThread

Sends InFunction to be called on the GameThread and waits for the result