Vital.sandbox
Thread

thread:get_thread

Shared

Retrieves currently running thread


Syntax

local ctx = thread:get_thread()

Parameters

TypeNameDescription

Returns

TypeNameDescription
thread / boolctxReturns currently running thread instance, or false if none is active

Examples

engine.print("Running thread:", thread:get_thread())

On this page