Thread.start

Starts a new Thread that runs method on object instance with userdata passed as an argument. Even if no userdata is passed, method must accept one argument and it will be null. The priority of the Thread can be changed by passing a value from the priority enum. Returns constant OK on success, or constant ERR_CANT_CREATE on failure.

struct Thread
@nogc nothrow
GodotError
start
(
VariantArg2
)
(,
in String method
,
in VariantArg2 userdata = Variant.nil
,
in long priority = 1
)

Meta