Actors

getactorthreads

Returns threads associated with Actor execution.

Syntax

getactorthreads(): table
Aliases getactorstates

Returns

NameTypeDescription
threadstableTable containing the requested values.

Description

Returns threads associated with Actor execution.

Call it without parameters. The function reads the needed context from the current runtime state.

It returns threads (table). Use the returns table to separate successful values from nil results and recoverable errors.

Example

Example call with placeholder values.

local result = getactorthreads()
print(result)