To create a one-shot delay timer in Godot without
creating a node, reference the following example,
which creates a SceneTreeTimer
by using
SceneTree
's create_timer
method:
func some_function():
print("Timer started.")
get_tree().create_timer(1.0).timeout
await print("Timer ended.")
Source: docs.godotengine.org