A unit of execution in a process.
A unit of execution in a process. Can run methods on [Object]s simultaneously. The use of synchronization via [Mutex] or [Semaphore] is advised if working with shared objects.
https://docs.godotengine.org/en/latest/tutorials/threads/using_multiple_threads.html
Returns the current [Thread]'s ID, uniquely identifying it among all threads.
Returns [code]true[/code] if this [Thread] is currently active. An active [Thread] cannot start work on a new method but can be joined with [method wait_to_finish].
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. Returns [constant OK] on success, or [constant ERR_CANT_CREATE] on failure.
Joins the [Thread] and waits for it to finish. Returns what the method called returned.