summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorDuroxxigar <young9003@gmail.com>2021-10-21 12:22:55 -0400
committerDuroxxigar <young9003@gmail.com>2021-10-21 12:22:55 -0400
commitcfb5d2dbf0fc1f89c54883ef7fd6426e15ea22c5 (patch)
tree58e5bc530a65557bc8240b7818d6118d0b9bd2c1 /doc/classes
parentfad7034e8b8275ce89424185c6ccee4de6aebd7f (diff)
Update example code for SceneTreeTimer to reflect new await keyword
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/SceneTreeTimer.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/classes/SceneTreeTimer.xml b/doc/classes/SceneTreeTimer.xml
index f97c5e42b5..b0509a322e 100644
--- a/doc/classes/SceneTreeTimer.xml
+++ b/doc/classes/SceneTreeTimer.xml
@@ -10,7 +10,7 @@
[gdscript]
func some_function():
print("Timer started.")
- yield(get_tree().create_timer(1.0), "timeout")
+ await get_tree().create_timer(1.0).timeout
print("Timer ended.")
[/gdscript]
[csharp]