db455e5bee
This prevents infinite recursion with one-shot connections emitting themselves
12 lines
184 B
GDScript
12 lines
184 B
GDScript
# https://github.com/godotengine/godot/issues/89439
|
|
extends Node
|
|
|
|
signal my_signal
|
|
|
|
func async_func():
|
|
await my_signal
|
|
my_signal.emit()
|
|
|
|
func test():
|
|
async_func()
|
|
my_signal.emit()
|