Daniel Lyons' Notes

`await` in GDScript

func _on_button_pressed() -> void:
	$SlimeSkin.hurt()
	await $SlimeSkin.animation_finished
	# 👆🏼 `animation_finished` is a signal. 
	# We are waiting until the signal is emitted.
	%Button.disabled = true
	%Button.text = "Can't hurt me!"
`await` in GDScript
Interactive graph