From 97c68514c4d88cf94272332f1e390cc2e0bcd394 Mon Sep 17 00:00:00 2001 From: LATRio Date: Sat, 25 Sep 2021 22:07:13 +0900 Subject: Use Callable in Thread::start --- doc/classes/Thread.xml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'doc/classes') 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 @@ - - - - + + + - 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. -- cgit v1.2.3