diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2021-09-28 11:10:09 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-28 11:10:09 +0200 |
commit | ed5267f69fd580b6c422153cfa46d0f33374d0db (patch) | |
tree | affa49e92293a62edaaa083fc51caece48c6dfc6 /doc/classes | |
parent | c89c2878efee067a469cb7ff7c3514d8115b7a56 (diff) | |
parent | 97c68514c4d88cf94272332f1e390cc2e0bcd394 (diff) |
Merge pull request #53053 from LATRio/callable_in_thread_start
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Thread.xml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/doc/classes/Thread.xml b/doc/classes/Thread.xml index 9c9119c664..ae5c0761b1 100644 --- a/doc/classes/Thread.xml +++ b/doc/classes/Thread.xml @@ -27,12 +27,11 @@ </method> <method name="start"> <return type="int" enum="Error" /> - <argument index="0" name="instance" type="Object" /> - <argument index="1" name="method" type="StringName" /> - <argument index="2" name="userdata" type="Variant" default="null" /> - <argument index="3" name="priority" type="int" enum="Thread.Priority" default="1" /> + <argument index="0" name="callable" type="Callable" /> + <argument index="1" name="userdata" type="Variant" default="null" /> + <argument index="2" name="priority" type="int" enum="Thread.Priority" default="1" /> <description> - 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. + Starts a new [Thread] that calls [code]callable[/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> |