Thread
self:status
Shared
Retrieves the status of an existing thread
Syntax
local status = self:status()Parameters
| Type | Name | Description |
|---|
Returns
| Type | Name | Description |
|---|---|---|
string | status | Thread's current status |
Examples
local self = thread:create(function(self)
engine.print("info", "Thread status:", self:status())
end)
self:resume()