For example, say I have this function:
var event_x_happened = false
func proceed_only_if_event_x_already_happened()
if not event_x_happened:
print("waiting for it...")
yield(self, "event_x")
event_x_happened = true
print("now it happened for sure - continue")
do_some_logic()
Is it guaranteed that the signal event_x
will not be emitted on the line
print("waiting for it...")
and hence will get missed out by the line
yield(self, "event_x")
thus causing a deadlock?