Clarify docs for Thread.start() godotengine#36032

* Updated docs for Thread.start() to specify that the method argument
must accept one parameter.
This commit is contained in:
Zak Grumbles 2020-03-30 21:53:39 -05:00
parent dfed5efea3
commit d09644dff3
No known key found for this signature in database
GPG Key ID: 6DA03AA4B36DCCEB
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@
<argument index="3" name="priority" type="int" enum="Thread.Priority" default="1">
</argument>
<description>
Starts a new [Thread] that runs [code]method[/code] on object [code]instance[/code] with [code]userdata[/code] passed as an argument. The [code]priority[/code] of the [Thread] can be changed by passing a value from the [enum Priority] enum.
Starts a new [Thread] that runs [code]method[/code] on object [code]instance[/code] with [code]userdata[/code] passed as an argument. Even if no userdata is passed, [code]method[/code] must accept one argument and it will be null. The [code]priority[/code] of the [Thread] can be changed by passing a value from the [enum Priority] enum.
Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure.
</description>
</method>