How do I make a for loop that yields a function until all the objects of an array emit a signal.
for example:
func example():
#start of code
for i in array:
#yield code until every i emits a signal
#resume code
What I have is:
func example():
#start of code
for i in array:
yield(i,"signal")
#resume code
But this only yields the code when the signal is emitted