summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2019-11-27 09:43:06 +0100
committerGitHub <noreply@github.com>2019-11-27 09:43:06 +0100
commitc1e125af52b5ea2cd02be5a26e0a737d8a06948c (patch)
tree82d18253b988ab7845e5ac59ce0e34ee4e3681ee
parent097eaa7563ea3a1453556ffdc4f4efc2dea6ba5c (diff)
parent4f14a1f59cb876300411669fa2310d10fbf3584e (diff)
Merge pull request #33923 from Calinou/doc-gdscript-remove-type-hint
Remove type hint from the @GDScript class documentation
-rw-r--r--modules/gdscript/doc_classes/@GDScript.xml6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/gdscript/doc_classes/@GDScript.xml b/modules/gdscript/doc_classes/@GDScript.xml
index 10eb719235..a22d18b970 100644
--- a/modules/gdscript/doc_classes/@GDScript.xml
+++ b/modules/gdscript/doc_classes/@GDScript.xml
@@ -1365,17 +1365,17 @@
If passed an object and a signal, the execution is resumed when the object emits the given signal. In this case, [code]yield()[/code] returns the argument passed to [code]emit_signal()[/code] if the signal takes only one argument, or an array containing all the arguments passed to [code]emit_signal()[/code] if the signal takes multiple arguments.
You can also use [code]yield[/code] to wait for a function to finish:
[codeblock]
- func _ready -> void:
+ func _ready():
yield(do_something(), "completed")
yield(do_something_else(), "completed")
print("All functions are done!")
func do_something():
print("Something is done!")
-
+
func do_something_else():
print("Something else is done!")
-
+
# prints:
# Something is done!
# Something else is done!