diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2022-06-23 15:15:41 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-23 15:15:41 +0200 |
commit | 1c54057933d76b566929a3a820015e84aea1d6d6 (patch) | |
tree | 7a58797a9e94936dd4355f74d8a311a66d532638 /doc/classes | |
parent | e3fb066cb01019919c29dae3fd08e0753ed56b75 (diff) | |
parent | a6f0aba43d8f95ccbb03353b5dfa90d91a4cb8cf (diff) | |
download | redot-engine-1c54057933d76b566929a3a820015e84aea1d6d6.tar.gz |
Merge pull request #62326 from KoBeWi/userbind
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/Thread.xml | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/classes/Thread.xml b/doc/classes/Thread.xml index d78b8db052..513daff37c 100644 --- a/doc/classes/Thread.xml +++ b/doc/classes/Thread.xml @@ -35,10 +35,11 @@ <method name="start"> <return type="int" enum="Error" /> <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" /> + <argument index="1" name="priority" type="int" enum="Thread.Priority" default="1" /> <description> - Starts a new [Thread] that calls [code]callable[/code] with [code]userdata[/code] passed as an argument. Even if no userdata is passed, [code]callable[/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]. + If the method takes some arguments, you can pass them using [method Callable.bind]. + 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> |