Hello! I have a function called load_ingame_stage_scenes that takes a resource called stage_info and loads the main scene of said stage on a different thread (called load_thread). However, I cannot find a solution that awaits for the load_thread to finish the threaded_transition_load_ingame_stage_root_scene function. Since this load_ingame_stage_scenes function is called from a Signal, I cannot check if the Thread.is_alive() is true without blocking the main thread. I tried using a Signal but it cannot be called in a different thread as it is not thread-safe and does not have call_deferred() recommended by the error message.
Is there a way to await/pause for the threaded_transition_load_ingame_stage_root_scene function to finish in the load_thread thread on the main thread here without blocking the main thread?
Thanks in advance. Please let me know if you'd like me to provide any more information.