Await

You can use await and then create a timer to wait for a process to finish

Example:

The following code creates a timer in the current tree and then waits 1 second for the timeout signal before continuing

await get_tree().create_timer(1).timeout

Last updated