You can use await and then create a timer to wait for a process to finish
await
Example:
The following code creates a timer in the current tree and then waits 1 second for the timeout signal before continuing
1
timeout
await get_tree().create_timer(1).timeout
Last updated 1 year ago