Vital.sandbox
Thread

thread:get_thread

Shared

Retrieves currently running thread


Syntax

local ctx = thread:get_thread()

Parameters

TypeNameDescription

Returns

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

Examples

Get the currently running thread
engine.print("info", "Running thread:", thread:get_thread())

On this page