Thread
thread:get_thread
Shared
Retrieves currently running thread
Syntax
local ctx = thread:get_thread()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
thread / bool | ctx | Returns currently running thread instance, or false if none is active |
Examples
engine.print("Running thread:", thread:get_thread())