ReferenceActors

getactorthreads

Returns handles for observed Actor-state threads.

Syntax

getactorthreads() -> {thread}

Returns

TypeDescription
{thread}Observed Actor thread handles.

Description

A handle represents a thread belonging to another state; it is not an ordinary coroutine that can safely be resumed from the current state. Use runonthread to submit source through the supported path. Handles can become invalid when the Actor or game session ends.

Example

for index, thread in getactorthreads() do
    print(index, typeof(thread))
end

These are Game executor contracts. Check build requirements and session lifetimes before using them.