Returns
{thread} - An array of threads currently executing under actors.
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
getactorthreads(): {thread}
{thread} - An array of threads currently executing under actors.
-- Print all actor threads
for _, t in ipairs(getactorthreads()) do
print(t)
end
-- Find if any actor threads are currently suspended
local suspended = 0
for _, t in ipairs(getactorthreads()) do
if coroutine.status(t) == "suspended" then
suspended = suspended + 1
end
end
print(`Found {suspended} suspended actor threads`)