I have some signal, with potential callables connected to it.
When I emit it, I want to wait for each callback to return before pursuing.
Something like:
await emit_signal('my_sig')
But it return immediatly after launching the callbacks execution.
Complete example:
extends Node
signal sig()
func _ready():
sig.connect(_on_sig)
await emit_signal('sig')
print('emitted !')
func _on_sig():
await get_tree().create_timer(1).timeout
print('sig waited')
Is it possible using GDScript signal's implementation, or should I implement my own Publisher-Subscriber ?